Overview Module Function Class Tea 3.1.0 Reference Documentation
© 2002 PDM&FC

Function tea-lock-release

tea-lock-release lockName

Releases a previously acquired lock.

Parameters:
lockName - Symbol identifing the lock being released.

Releases a lock previously acquired by calling tea-lock-acquire. One of the threads that were blocked on lockName will resume execution.

It is illegal to release a lock that was not previously acquired by the current thread. A runtime error will occur if this happens.

The functions tea-lock-release, tea-lock-acquire are only useful within code that may be executing by more than one interpreter, where each interpreter is running on a separate thread.


Overview Module Function Class Tea 3.1.0 Reference Documentation
© 2002 PDM&FC
Report a bug or request new features
© 2002