HomePhabricator

[lldb/Core] Avoid more Communication::Disconnect races

Authored by labath on Apr 23 2020, 7:27 AM.

Description

[lldb/Core] Avoid more Communication::Disconnect races

Calling Disconnect while the read thread is running is racy because the
thread can also call Disconnect. This is a follow-up to b424b0bf, which
reorders other occurences of Disconnect/StopReadThread I can find, and also
adds an assertion to guard against new occurences being introduced.

Details

Committed
labathApr 23 2020, 7:36 AM
Parents
rG89cb5d558895: [clangd] Delete remapped buffers in tests
Branches
Unknown
Tags
Unknown