Locks a ring such that no other thread can access it while some code is executed.
hcl
with-ring-locked (ring &optional whostate timeout) &body body => result
ring⇩ |
A ring object created by make-ring. |
whostate⇩ |
The status of the process while the ring is locked. |
timeout⇩ |
A timeout period, in seconds. |
body⇩ |
Lisp forms. |
result |
The result of executing body. |
The macro with-ring-locked
locks the ring ring that during the execution of body no other thread can access ring, whether for modification or merely reading values.
whostate and timeout are used in the same way as in with-lock.
LispWorks® User Guide and Reference Manual - 01 Dec 2021 19:30:35