FairCom Corporation


F.81 ctThrdSleep


Sleep a thread for a given time.

Short Name

ctThrdSleep

TYPE

Threading function

DECLARATION

NINT ctThrdSleep(LONG milliseconds)

DESCRIPTION

Sleep thread for specified milliseconds, 1000 milliseconds equivalent to 1 second. A sleep of zero duration acts as a yield to other threads.

RETURN

ctThrdSleep returns NO_ERROR. 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 ctmtex.c and ctmtap.c for ctThrdSleep examples.

LIMITATIONS

Can only be used with a ctThrd library.

SEE ALSO

ctThrdInit


FairCom Corporation
www.faircom.com