chickadee » synch » set!/synch

(set!/synch (VARIABLE MUTEXFORM) [BODY ...]) => OBJECTsyntax

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.