If threads are waiting for cond, exactly one of them is woken up.
It is good practice to hold the same lock as the waiting thread
while calling this function, though not required.
This function can be used even if g_thread_init() has not yet been
called, and, in that case, will do nothing.
If threads are waiting for cond, exactly one of them is woken up. It is good practice to hold the same lock as the waiting thread while calling this function, though not required. This function can be used even if g_thread_init() has not yet been called, and, in that case, will do nothing.