Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't attempt to wait() on event if already finished
Fixes a regression added in e757fe1, which is a race condition on a call like: some_fast_threaded_task().wait() If the thread finishes before wait() is called then the caller would block waiting on an event that is never set.
- Loading branch information
1 parent
4dd32e2
commit acf5a63
Showing
1 changed file
with
6 additions
and
4 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