[glib/gwakeup] GWakeup: add signal safety note
- From: Ryan Lortie <ryanl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/gwakeup] GWakeup: add signal safety note
- Date: Mon, 25 Jul 2011 14:35:50 +0000 (UTC)
commit 7f15910e7907e17606ba9e149cc3b04be4887bbf
Author: Ryan Lortie <desrt desrt ca>
Date: Mon Jul 25 16:35:08 2011 +0200
GWakeup: add signal safety note
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 | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/glib/gwakeup.c b/glib/gwakeup.c
index 76f9ece..29a0fca 100644
--- a/glib/gwakeup.c
+++ b/glib/gwakeup.c
@@ -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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]