Admin Production rocket
Current Publication

CBL_THREAD_SELF

NetExpress Bookshelf Help V5.1 WrapPack 1
Rocket® Net Express™ (formerly a product of Micro Focus or formerly a product of Open Text) documentation, created before Rocket Software acquired certain products from OpenText, may include outdated references to "Micro Focus" or "OpenText", both of which are trademarks of OpenText or its affiliates. Rocket Software is not affiliated with Micro Focus or OpenText and has since rebranded these products as Rocket® products. You may also encounter outdated links in this documentation. If you do, please contact Rocket Support (support@rocketsoftware.com) for assistance.

CBL_THREAD_SELF

Stores the thread identifier of the current thread.

Syntax:
call "CBL_THREAD_SELF" using by reference thread-id
Parameters:
Using call prototype (see Key) Picture (32-bit systems)
thread-id cblt-pointer usage pointer.
On Entry:
thread-id A pointer to the thread identifier.
On Exit:
return-code A value indicating success or otherwise. See RETURN-CODE Values For Thread-control Routines
Comments:

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:

Example of using CBL_THREAD_SELF to check for a multi-threaded run-time system

See Also:

Related Topics