Product Documentation

FairCom ISAM for C

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 FairCom DB Error Codes for a complete listing of valid FairCom DB 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

TOCIndex