NAME | SYNOPSIS | FEATURES | DESCRIPTION | ERRORS | ATTRIBUTES | SEE ALSO
#include <exec/chExec.h>int threadDelay(KnTimeVal *waitLimit);
CORE
threadDelay delays the execution of the current thread according to the value of *waitLimit.
waitLimit is a pointer to a KnTimeVal structure containing a timeout interval as described in sysTime(2K). Semantics and constant option values of waitLimit argument are fully described in intro(2K). A waitLimit value of K_NOBLOCK (or zero) means that the thread is still ready to run after the call. In this case, threadDelay may have the effect of simply yielding the processor to another thread that is ready to run. The precise actions in this case depend on the scheduler module configured.
The waitLimit structure is not a valid KnTimeVal.
The time out occurred.
The thread has been aborted while delayed.
See attributes(5) for descriptions of the following attributes:
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
---|---|
Interface Stability | Evolving |
NAME | SYNOPSIS | FEATURES | DESCRIPTION | ERRORS | ATTRIBUTES | SEE ALSO