From 0a4686f75f02682a280668644026bb886a73b4b0 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 8 Jul 2009 02:46:05 +0000 Subject: *** empty log message *** --- ev.pod | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'ev.pod') diff --git a/ev.pod b/ev.pod index 296e8c4..aa80699 100644 --- a/ev.pod +++ b/ev.pod @@ -623,6 +623,18 @@ 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 and C calls. +=item unsigned int ev_loop_depth (loop) + +Returns the number of times C was entered minus the number of +times C was exited, in other words, the recursion depth. + +Outside C, this number is zero. In a callback, this number is +C<1>, unless C was invoked recursively (or from another thread), +in which case it is higher. + +Leaving C abnormally (setjmp/longjmp, cancelling the thread +etc.), doesn't count as exit. + =item unsigned int ev_backend (loop) Returns one of the C flags indicating the event backend in -- cgit v1.2.3