aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/documentation/lux/control/concurrency/semaphore.lux
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib/source/documentation/lux/control/concurrency/semaphore.lux')
-rw-r--r--stdlib/source/documentation/lux/control/concurrency/semaphore.lux10
1 files changed, 5 insertions, 5 deletions
diff --git a/stdlib/source/documentation/lux/control/concurrency/semaphore.lux b/stdlib/source/documentation/lux/control/concurrency/semaphore.lux
index 757bb8692..86d302ce4 100644
--- a/stdlib/source/documentation/lux/control/concurrency/semaphore.lux
+++ b/stdlib/source/documentation/lux/control/concurrency/semaphore.lux
@@ -21,27 +21,27 @@
($.definition /.semaphore
""
- [(semaphore initial_open_positions)])
+ ($.example (semaphore initial_open_positions)))
($.definition /.wait!
(format "Wait on a semaphore until there are open positions."
\n "After finishing your work, you must 'signal' to the semaphore that you're done.")
- [(wait! semaphore)])
+ ($.example (wait! semaphore)))
($.definition /.signal!
"Signal to a semaphore that you're done with your work, and that there is a new open position."
- [(signal! semaphore)])
+ ($.example (signal! semaphore)))
($.definition /.Mutex
"A mutual-exclusion lock that can only be acquired by one process at a time.")
($.definition /.mutex
"Creates a brand-new mutex."
- [(mutex _)])
+ ($.example (mutex _)))
($.definition /.synchronize!
"Runs the procedure with exclusive control of the mutex."
- [(synchronize! mutex procedure)])
+ ($.example (synchronize! mutex procedure)))
($.definition /.limit
"Produce a limit for a barrier.")