gtkc.gthreadtypes.GCond Struct Reference

Detailed Description

The GCond struct is an opaque data structure that represents a condition.

Threads can block on a GCond if they find a certain condition to be false. If other threads change the state of this condition they signal the GCond, and that causes the waiting threads to be woken up. Example9.Using GCond to block a thread until a condition is satisfied GCond* data_cond = NULL; /+* Must be initialized somewhere +/ GMutex* data_mutex = NULL; /+* Must be initialized somewhere +/ gpointer current_data = NULL; void push_data (gpointer data) { Logo Logo Logo