GWakeup: add signal safety note
authorRyan Lortie <desrt@desrt.ca>
Mon, 25 Jul 2011 14:35:08 +0000 (16:35 +0200)
committerRyan Lortie <desrt@desrt.ca>
Mon, 25 Jul 2011 14:35:08 +0000 (16:35 +0200)
Note that g_wakeup_signal() is safe to call from a UNIX signal handler
(since this is a likely place to want to call it from).

glib/gwakeup.c

index 76f9ece..29a0fca 100644 (file)
@@ -202,6 +202,8 @@ g_wakeup_acknowledge (GWakeup *wakeup)
  * g_wakeup_get_pollfd() will immediately succeed until such a time as
  * g_wakeup_acknowledge() is called.
  *
+ * This function is safe to call from a UNIX signal handler.
+ *
  * Since: 2.30
  **/
 void