Previous Topic

Next Topic

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 c-tree Plus Error Codes for a complete listing of valid c-tree Plus error values.

Example

See the ctThrdDetach() example.

See also

ctThrdDetach(), ctThrdInit()