Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[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 b424b0b, which reorders other occurences of Disconnect/StopReadThread I can find, and also adds an assertion to guard against new occurences being introduced.
- Loading branch information
Showing
2 changed files
with
4 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters