Previous Topic

Next Topic

ctThrdTerm

Terminate threading support.

Short Name

ctThrdTerm()

Type

Threading function

Declaration

NINT ctThrdTerm(void) 

Description

Terminate threading support. All open queues are closed and control variables are reset to zero.

Return

ctThrdTerm() returns NO_ERROR. 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.

Example

COUNT     retval2;
NINT      retval4;

if (retval4 = ctThrdInit(5, NULL, NULL)) {
    ctThrdTerm();
    return(retval4);
}
if ((retval2 = InitISAM(6, 25, 32)) {
    CloseISAM();
    return((NINT) retval2);
}
dbWork();
CloseISAM();
ctThrdTerm();
return((NINT) 0);

Limitations

Can only be used with a ctThrd library.

See also

ctThrdInit()