… | |
… | |
59 | |
59 | |
60 | # if HAVE_KQUEUE && HAVE_SYS_EVENT_H && HAVE_SYS_QUEUE_H && !defined (EV_USE_KQUEUE) |
60 | # if HAVE_KQUEUE && HAVE_SYS_EVENT_H && HAVE_SYS_QUEUE_H && !defined (EV_USE_KQUEUE) |
61 | # define EV_USE_KQUEUE 1 |
61 | # define EV_USE_KQUEUE 1 |
62 | # endif |
62 | # endif |
63 | |
63 | |
64 | # if HAVE_PORT_H && HAVE_PORT_H && HAVE_PORT_CREATE && !defined (EV_USE_PORT) |
64 | # if HAVE_PORT_H && HAVE_PORT_CREATE && !defined (EV_USE_PORT) |
65 | # define EV_USE_PORT 1 |
65 | # define EV_USE_PORT 1 |
66 | # endif |
66 | # endif |
67 | |
67 | |
68 | #endif |
68 | #endif |
69 | |
69 | |
… | |
… | |
151 | #endif |
151 | #endif |
152 | |
152 | |
153 | /**/ |
153 | /**/ |
154 | |
154 | |
155 | #define MIN_TIMEJUMP 1. /* minimum timejump that gets detected (if monotonic clock available) */ |
155 | #define MIN_TIMEJUMP 1. /* minimum timejump that gets detected (if monotonic clock available) */ |
156 | #define MAX_BLOCKTIME 59.731 /* never wait longer than this time (to detect time jumps) */ |
156 | #define MAX_BLOCKTIME 59.743 /* never wait longer than this time (to detect time jumps) */ |
157 | #define PID_HASHSIZE 16 /* size of pid hash table, must be power of two */ |
157 | #define PID_HASHSIZE 16 /* size of pid hash table, must be power of two */ |
158 | /*#define CLEANUP_INTERVAL 300. /* how often to try to free memory and re-check fds */ |
158 | /*#define CLEANUP_INTERVAL (MAX_BLOCKTIME * 5.) /* how often to try to free memory and re-check fds */ |
159 | |
159 | |
160 | #ifdef EV_H |
160 | #ifdef EV_H |
161 | # include EV_H |
161 | # include EV_H |
162 | #else |
162 | #else |
163 | # include "ev.h" |
163 | # include "ev.h" |