Locks a ring such that no other thread can access it while some code is executed.
with-ring-locked (ring &optional whostate timeout) &body body => result
A ring object created by make-ring.
The status of the process while the ring is locked.
A timeout period, in seconds.
The result of executing body.
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 - 20 Sep 2017