If the thread terminates abnormally, all monitors acquired by that thread are released. If the thread terminates normally with monitors acquired, then either these are released or a run-time system error is given, depending on the flag setting when the thread was created with CBL_THREAD_CREATE.
Behavior is undefined if either monitor-handle is invalid or no previous lock was obtained by this thread on the specified monitor.
Comments:
If the thread terminates abnormally, all monitors acquired by that thread are released. If the thread terminates normally with monitors acquired, then either these are released or a run-time system error is given, depending on the flag setting when the thread was created with CBL_THREAD_CREATE.
Behavior is undefined if either monitor-handle is invalid or no previous lock was obtained by this thread on the specified monitor.