forked from ocaml/ocaml
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Better documentation for condition variables. (ocaml#11192)
* Better documentation for condition variables. The specification has been made more precise: - exactly one mutex per condition variable; - recommend that [signal] and [broadcast] are called only when the mutex is locked. Furthermore, a longer high-level explanation of condition variables has been added. * Mention spurious wakeups. * Present condition variables as an efficient alternative to busy-waiting. * Add a complete example of an unbounded queue.
- Loading branch information
Showing
2 changed files
with
147 additions
and
21 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