/* the poll/select call is also performed on a control socket, that way * we can send special commands to control it */ static inline gboolean raise_wakeup (GstPoll * set) { gboolean result = TRUE; if (g_atomic_int_exchange_and_add (&set->control_pending, 1) == 0) { /* raise when nothing pending */ result = WAKE_EVENT (set); } return result; }
/* the poll/select call is also performed on a control socket, that way * we can send special commands to control it */ static inline gboolean raise_wakeup (GstPoll * set) { gboolean result = TRUE; if (g_atomic_int_add (&set->control_pending, 1) == 0) { /* raise when nothing pending */ GST_LOG ("%p: raise", set); result = WAKE_EVENT (set); } return result; }