CBL_MUTEX_RELEASE

Syntax:

call "CBL_MUTEX_RELEASE" using by value mutex-handle

Parameters:

  Using call prototype (see Key) Picture
mutex-handle cblt-pointer. usage pointer.

On Entry:

mutex-handle Mutex handle

On Exit:

return-code A value of 0 indicates that the call was successful. Any other value indicates an error. See RETURN-CODE Values For Synchronization Routines.

Comments:

If one or more threads are blocked in a CBL_MUTEX_ACQUIRE routine waiting for this mutex, one of them unblocks and returns from its call with the mutex acquired.

Behavior is undefined if either the current thread has not acquired the mutex or mutex-handle is invalid.