summaryrefslogtreecommitdiff
path: root/ev.h
diff options
context:
space:
mode:
authorroot <root>2008-05-21 23:25:21 +0000
committerroot <root>2008-05-21 23:25:21 +0000
commit04eca7307d84fef57bc40c6efe8475dfb80fa01f (patch)
tree7249805dc373d5a029b3d49ba325339b6a0212d4 /ev.h
parent2cd4febbd4a1612876408957f37a16be7d2cde04 (diff)
*** empty log message ***
Diffstat (limited to 'ev.h')
-rw-r--r--ev.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/ev.h b/ev.h
index fef82e9..1327859 100644
--- a/ev.h
+++ b/ev.h
@@ -166,6 +166,15 @@ struct ev_loop;
* private: you can look at them, but not change them, and they might not mean anything to you.
* ro: can be read anytime, but only changed when the watcher isn't active
* rw: can be read and modified anytime, even when the watcher is active
+ *
+ * some internal details that might be helpful for debugging:
+ *
+ * active is either 0, which means the watcher is not active,
+ * or the array index of the watcher (periodics, timers)
+ * or the array index + 1 (most other watchers)
+ * or simply 1 for watchers that aren't in some array.
+ * pending is either 0, in which case the watcher isn't,
+ * or the array index + 1 in the pendings array.
*/
/* shared by all watchers */