Logo Search packages:      
Sourcecode: djvulibre version File versions

int GThread::yield (  )  [inline, static]

Causes the current thread to relinquish the processor. The scheduler selects a thread ready to run and transfers control to that thread. The actual effect of yield# heavily depends on the selected implementation. Function yield# usually returns zero when the execution of the current thread is resumed. It may return a positive number when it can determine that the current thread will remain the only runnable thread for some time. You may then call function {get_select} to obtain more information.

Definition at line 445 of file GThreads.h.

Referenced by GOS::sleep(), and DataPool::stop().

{ return 0; }


Generated by  Doxygen 1.6.0   Back to index