Function

GLibThreadyield

Declaration [src]

void
g_thread_yield (
  void
)

Description [src]

Causes the calling thread to voluntarily relinquish the CPU, so that other threads can run.

This function is often used as a method to make busy wait less evil.