Stores the thread identifier of the current thread.
call "CBL_THREAD_SELF" using by reference thread-id
Using call prototype (see Library Routines - Key) | Picture (32-bit systems) | |
---|---|---|
thread-id | cblt-pointer | usage pointer. |
thread-id | A pointer to the thread identifier. |
return-code | A value indicating success or otherwise. See RETURN-CODE Values For Thread-control Routines |
The run-time system returns the thread identifier and stores it in thread-id.
You can check that the run-time system under which your program is running supports multi-threading by a call to CBL_THREAD_SELF:
Using CBL_THREAD_SELF to Check Operating System