-
-
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.
Condition/RecursiveLock: add ability to handle threads
This extends Condition to assert that it may only be used in the single-threaded case (co-operatively scheduled), and then adds a thread-safe version of the same: Threads.Condition. Additionally, it also upgrades ReentrantLock, etc. to be thread-safe. fixup: undo previous commit. remove ST versions of Lock, Event, Semaphore. introduce new Threads.Condition
- Loading branch information
Showing
23 changed files
with
545 additions
and
460 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -641,6 +641,7 @@ export | |
|
||
# tasks and conditions | ||
Condition, | ||
Event, | ||
current_task, | ||
islocked, | ||
istaskdone, | ||
|
Oops, something went wrong.