summaryrefslogtreecommitdiff
path: root/ev.c
diff options
context:
space:
mode:
authorroot <root>2007-11-01 09:05:33 +0000
committerroot <root>2007-11-01 09:05:33 +0000
commit77ddb901ea55fe7425f9e2f9201a0641a0b8e5fd (patch)
tree988b581ec7119804c132de3cf991b485f0172cad /ev.c
parent0b4c472152d0c1274572fa5fb7223b7bbf4dfe54 (diff)
*** empty log message ***
Diffstat (limited to 'ev.c')
-rw-r--r--ev.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/ev.c b/ev.c
index 3a177c5..9f35287 100644
--- a/ev.c
+++ b/ev.c
@@ -60,13 +60,17 @@
# define EV_USE_EPOLL 0
#endif
+#ifndef CLOCK_REALTIME
+# define EV_USE_REALTIME 0
+#endif
#ifndef EV_USE_REALTIME
# define EV_USE_REALTIME 1 /* posix requirement, but might be slower */
#endif
#define MIN_TIMEJUMP 1. /* minimum timejump that gets detected (if monotonic clock available) */
-#define MAX_BLOCKTIME 59.731
-#define PID_HASHSIZE 16 /* size of pid hahs table, must be power of two */
+#define MAX_BLOCKTIME 59.731 /* never wait longer than this time (to detetc time jumps) */
+#define PID_HASHSIZE 16 /* size of pid hash table, must be power of two */
+#define CLEANUP_INTERVAL (MAX_BLOCKTIME * 5.) /* how often to try to free memory and re-check fds */
#include "ev.h"