FairCom Corporation


F.49 ctThrdAttach


Make an existing thread c-tree Plus compatible.

Short Name

ctThrdAttach

TYPE

Threading Function

DECLARATION

NINT ctThrdAttach(void)

DESCRIPTION

ctThrdAttach prepares a thread to be used with c-tree Plus. If the calling thread is already compatible, ctThrdAttach returns NO_ERROR and does nothing.

RETURN

Value
Symbolic Constant
Explanation
0
NO_ERROR
Thread successfully attached.
82
UALC_ERR
Insufficient memory.
600
CTHD_ERR
Exceeded threads permitted by ctThrdInit.

See Appendix A "c-tree Plus Error Codes" of the c-tree Plus Programmer's Reference Guide for a complete listing of valid c-tree Plus error values.

EXAMPLE

See the ctThrdDetach example.

SEE ALSO

ctThrdDetach and ctThrdInit.


FairCom Corporation
www.faircom.com