-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Document threadsafety of isready(::Channel) and remove data race
Make it clear that isready() is not threadsafe, as it has a data race. We could make it threadsafe with lock() but this would also make it blocking and wouldn't make uses of it non-racy without a lock around the surronding code. So for now just document the current state of affairs. Also remove an optimistic use of `isready()` in `wait()` as it's a data race.
- Loading branch information
Showing
2 changed files
with
5 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