… | |
… | |
25 | #include "rxvtvec.h" |
25 | #include "rxvtvec.h" |
26 | #include "callback.h" |
26 | #include "callback.h" |
27 | |
27 | |
28 | #define IOM_IO 1 |
28 | #define IOM_IO 1 |
29 | #define IOM_TIME 1 |
29 | #define IOM_TIME 1 |
30 | #undef IOM_CHECK |
30 | #define IOM_CHECK 1 |
31 | |
31 | |
32 | #if IOM_IO |
32 | #if IOM_IO |
33 | typedef double tstamp; |
33 | typedef double tstamp; |
34 | extern tstamp NOW; |
34 | extern tstamp NOW; |
35 | |
35 | |
… | |
… | |
49 | #if IOM_CHECK |
49 | #if IOM_CHECK |
50 | simplevec<check_watcher *> cw; |
50 | simplevec<check_watcher *> cw; |
51 | #endif |
51 | #endif |
52 | #if IOM_TIME |
52 | #if IOM_TIME |
53 | simplevec<time_watcher *> tw; |
53 | simplevec<time_watcher *> tw; |
54 | |
|
|
55 | void idle_cb (time_watcher &w); time_watcher *idle; |
|
|
56 | #endif |
54 | #endif |
57 | |
55 | |
58 | template<class watcher> |
56 | template<class watcher> |
59 | void reg (watcher *w, simplevec<watcher *> &queue); |
57 | void reg (watcher *w, simplevec<watcher *> &queue); |
60 | |
58 | |