Yield the processor.
The sched_yield() function shall force the running thread to relinquish the processor until it again becomes the head of its thread list.
2. Syntax
1 |
int sched_yield(void); |
3. Param
4. Return Value
Upon successful, return zero; otherwise, return -1, and set errno to indicate the error.
近期评论