summaryrefslogtreecommitdiff
path: root/ev.pod
diff options
context:
space:
mode:
authorroot <root>2007-12-03 13:41:24 +0000
committerroot <root>2007-12-03 13:41:24 +0000
commiteb7909955a094de6e667e3e9f88ddbad46fc93b6 (patch)
treebac295fb43e74b3390fa853d4d4169bc9b520aec /ev.pod
parentf6cc1f750a321b2c6e30637963d3e624c7a8e5ae (diff)
*** empty log message ***
Diffstat (limited to 'ev.pod')
-rw-r--r--ev.pod10
1 files changed, 10 insertions, 0 deletions
diff --git a/ev.pod b/ev.pod
index ed0ac1b..f372d94 100644
--- a/ev.pod
+++ b/ev.pod
@@ -432,6 +432,16 @@ Like C<ev_default_fork>, but acts on an event loop created by
C<ev_loop_new>. Yes, you have to call this on every allocated event loop
after fork, and how you do this is entirely your own problem.
+=item unsigned int ev_loop_count (loop)
+
+Returns the count of loop iterations for the loop, which is identical to
+the number of times libev did poll for new events. It starts at C<0> and
+happily wraps around with enough iterations.
+
+This value can sometimes be useful as a generation counter of sorts (it
+"ticks" the number of loop iterations), as it roughly corresponds with
+C<ev_prepare> and C<ev_check> calls.
+
=item unsigned int ev_backend (loop)
Returns one of the C<EVBACKEND_*> flags indicating the event backend in