summaryrefslogtreecommitdiffstats
path: root/contrib/libev
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-06-20 21:56:11 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-06-22 10:57:29 +0100
commit7c4eb706c124806d254af6033c7023ee488b2c6c (patch)
tree735f7782e3d02617fcae19936c7d1609da32946d /contrib/libev
parent885b63d8457dba1094f465471432d5e2cbdb7dea (diff)
downloadrspamd-7c4eb706c124806d254af6033c7023ee488b2c6c.tar.gz
rspamd-7c4eb706c124806d254af6033c7023ee488b2c6c.zip
[Project] Another try to deal with final events
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