Previous Topic

Next Topic

ctThrdHandle

Returns a thread identifier.

Short Name

ctThrdHandle()

Type

Threading function

Declaration

NINT ctThrdHandle() 

Description

Returns a small thread identifier corresponding to the calling thread. This identifier can be reassigned to a new thread once the original thread goes away via ctThrdExit().

Return

See Description. On error, check sysiocod for the system level error return. See “c-tree Plus Error Codes” in the c-tree Plus Programmer’s Reference Guide for a complete listing of valid c-tree Plus error values.

Limitations

Can only be used with a ctThrd library.

See also

ctThrdInit(), ctThrdExit()