chickadee » synch » set!-synch-with

(set!-synch-with MUTEX-FORM VARIABLE [BODY ...]) -> * ...syntax

While the MUTEX is locked, evaluates BODY ... with the VARIABLE bound to the mutex-specific of MUTEX. Sets the mutex-specific of MUTEX to the result of the evaluation.

Returns the new mutex-specific of MUTEX.