… | |
… | |
94 | #endif |
94 | #endif |
95 | |
95 | |
96 | /**/ |
96 | /**/ |
97 | |
97 | |
98 | #ifndef EV_USE_MONOTONIC |
98 | #ifndef EV_USE_MONOTONIC |
99 | # define EV_USE_MONOTONIC 1 |
99 | # define EV_USE_MONOTONIC 0 |
100 | #endif |
100 | #endif |
101 | |
101 | |
102 | #ifndef EV_USE_REALTIME |
102 | #ifndef EV_USE_REALTIME |
103 | # define EV_USE_REALTIME 1 |
103 | # define EV_USE_REALTIME 0 |
104 | #endif |
104 | #endif |
105 | |
105 | |
106 | #ifndef EV_USE_SELECT |
106 | #ifndef EV_USE_SELECT |
107 | # define EV_USE_SELECT 1 |
107 | # define EV_USE_SELECT 1 |
108 | # define EV_SELECT_USE_FD_SET 1 |
|
|
109 | #endif |
108 | #endif |
110 | |
109 | |
111 | #ifndef EV_USE_POLL |
110 | #ifndef EV_USE_POLL |
112 | # ifdef _WIN32 |
111 | # ifdef _WIN32 |
113 | # define EV_USE_POLL 0 |
112 | # define EV_USE_POLL 0 |
… | |
… | |
151 | #endif |
150 | #endif |
152 | |
151 | |
153 | /**/ |
152 | /**/ |
154 | |
153 | |
155 | #define MIN_TIMEJUMP 1. /* minimum timejump that gets detected (if monotonic clock available) */ |
154 | #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) */ |
155 | #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 */ |
156 | #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 */ |
157 | /*#define CLEANUP_INTERVAL (MAX_BLOCKTIME * 5.) /* how often to try to free memory and re-check fds */ |
159 | |
158 | |
160 | #ifdef EV_H |
159 | #ifdef EV_H |
161 | # include EV_H |
160 | # include EV_H |
162 | #else |
161 | #else |
163 | # include "ev.h" |
162 | # include "ev.h" |