This function is declared in the kos/thread.h file.
int KosThreadWait(rtl_uint32_t tid, rtl_uint32_t timeout);
This function suspends execution of the current thread until termination of the thread with the identifier tid or until the timeout (in milliseconds).
The KosThreadWait() call with a zero value for timeout is analogous to the KosThreadYield() call .
If successful, the function returns rcOk. In case of timeout, it returns rcTimeout.
Page top