Function

GLibThreadyield

Declaration

void
g_thread_yield (
  void
)

Description

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.