ctThrdData
Returns a pointer to a private data area.
Short Name
ctThrdData()
Type
Threading function
Declaration
pVOID ctThrdData()
Description
Returns a pointer to the private data area of the current thread, set up during ctThrdCreate(). A NULL return is possible if user_var was NULL at thread create, or if current thread does not appear to have been created within the context of the API.
For efficiency, if a function makes more than one reference to the private data area, a pointer to the area should be included on the functions stack and initialized by a call to this function.
Return
See Description.
Limitations
Can only be used with a ctThrd library.
See also
ctThrdDataSet, ctThrdCreate