summaryrefslogtreecommitdiffstats
path: root/contrib/libev
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/libev')
-rw-r--r--contrib/libev/ev.c6
-rw-r--r--contrib/libev/ev.h1
2 files changed, 7 insertions, 0 deletions
diff --git a/contrib/libev/ev.c b/contrib/libev/ev.c
index cb8127fc5..82d2fa8a9 100644
--- a/contrib/libev/ev.c
+++ b/contrib/libev/ev.c
@@ -3777,6 +3777,12 @@ ev_unref (EV_P) EV_NOEXCEPT
--activecnt;
}
+int
+ev_active_cnt (EV_P) EV_NOEXCEPT
+{
+ return activecnt;
+}
+
void
ev_now_update (EV_P) EV_NOEXCEPT
{
diff --git a/contrib/libev/ev.h b/contrib/libev/ev.h
index cb7b2e479..b27a2fdad 100644
--- a/contrib/libev/ev.h
+++ b/contrib/libev/ev.h
@@ -630,6 +630,7 @@ EV_API_DECL void ev_break (EV_P_ int how EV_CPP (= EVBREAK_ONE)) EV_NOEXCEPT; /*
*/
EV_API_DECL void ev_ref (EV_P) EV_NOEXCEPT;
EV_API_DECL void ev_unref (EV_P) EV_NOEXCEPT;
+EV_API_DECL int ev_active_cnt (EV_P) EV_NOEXCEPT;
/*
* convenience function, wait for a single event, without registering an event watcher