Locks most functions of the thread-handling routines.
call "CBL_THREAD_LOCK"
None.
return-code | A value indicating success or otherwise. See RETURN-CODE Values For Thread-control Routines |
This routine can also be used to synchronize access to global or external data, id-data and error handling.
Any thread that obtains a CBL_THREAD_LOCK must not exit before doing a CBL_THREAD_UNLOCK.