Acquires the specified monitor's write capability for the current thread, blocking until that capability can be acquired.
Syntax:
call "CBL_MONITOR_WRITE" using by value monitor-handle
Parameters:
|
Using call prototype (see
Key)
|
Picture
|
monitor-handle
|
cblt-pointer.
|
usage pointer.
|
On Entry:
monitor-handle
|
The monitor handle.
|
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.
Behavior is undefined if monitor-handle is invalid.