summaryrefslogtreecommitdiff
path: root/ev.h
diff options
context:
space:
mode:
authorroot <root>2008-02-19 17:09:28 +0000
committerroot <root>2008-02-19 17:09:28 +0000
commit091617c5e9d95bebfbb7f57fa1faeb22fcb57feb (patch)
treef9650c7621748569d16a7c018ae1d6ba8582fe4c /ev.h
parent014a3ba283e895a632c27eb2e966576fbc27461a (diff)
*** empty log message ***
Diffstat (limited to 'ev.h')
-rw-r--r--ev.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/ev.h b/ev.h
index 50bd57e..5a3d152 100644
--- a/ev.h
+++ b/ev.h
@@ -432,6 +432,18 @@ ev_now (void)
}
# endif
+static int
+ev_is_default_loop (EV_P)
+{
+#if EV_MULTIPLICITY
+ extern struct ev_loop *ev_default_loop_ptr;
+
+ return !!(EV_A == ev_default_loop_ptr);
+#else
+ return 1;
+#endif
+}
+
void ev_default_destroy (void); /* destroy the default loop */
/* this needs to be called after fork, to duplicate the default loop */
/* if you create alternative loops you have to call ev_loop_fork on them */