If threads are waiting for cond, all of them are woken up. It is
good practice to lock the same mutex as the waiting threads, 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, all of them are woken up. It is good practice to lock the same mutex as the waiting threads, 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.