… | |
… | |
2 | #ifndef EV_WRAP_H |
2 | #ifndef EV_WRAP_H |
3 | #define EV_WRAP_H |
3 | #define EV_WRAP_H |
4 | #define now_floor ((loop)->now_floor) |
4 | #define now_floor ((loop)->now_floor) |
5 | #define mn_now ((loop)->mn_now) |
5 | #define mn_now ((loop)->mn_now) |
6 | #define rtmn_diff ((loop)->rtmn_diff) |
6 | #define rtmn_diff ((loop)->rtmn_diff) |
|
|
7 | #define io_blocktime ((loop)->io_blocktime) |
|
|
8 | #define timeout_blocktime ((loop)->timeout_blocktime) |
7 | #define backend ((loop)->backend) |
9 | #define backend ((loop)->backend) |
8 | #define activecnt ((loop)->activecnt) |
10 | #define activecnt ((loop)->activecnt) |
9 | #define loop_count ((loop)->loop_count) |
11 | #define loop_count ((loop)->loop_count) |
|
|
12 | #define loop_depth ((loop)->loop_depth) |
|
|
13 | #define loop_done ((loop)->loop_done) |
|
|
14 | #define backend_fd ((loop)->backend_fd) |
10 | #define backend_fudge ((loop)->backend_fudge) |
15 | #define backend_fudge ((loop)->backend_fudge) |
11 | #define backend_modify ((loop)->backend_modify) |
16 | #define backend_modify ((loop)->backend_modify) |
12 | #define backend_poll ((loop)->backend_poll) |
17 | #define backend_poll ((loop)->backend_poll) |
13 | #define backend_fd ((loop)->backend_fd) |
18 | #define anfds ((loop)->anfds) |
|
|
19 | #define anfdmax ((loop)->anfdmax) |
|
|
20 | #define pendings ((loop)->pendings) |
|
|
21 | #define pendingmax ((loop)->pendingmax) |
|
|
22 | #define pendingcnt ((loop)->pendingcnt) |
|
|
23 | #define pending_w ((loop)->pending_w) |
|
|
24 | #define rfeeds ((loop)->rfeeds) |
|
|
25 | #define rfeedmax ((loop)->rfeedmax) |
|
|
26 | #define rfeedcnt ((loop)->rfeedcnt) |
|
|
27 | #define evfd ((loop)->evfd) |
|
|
28 | #define evpipe ((loop)->evpipe) |
|
|
29 | #define pipe_w ((loop)->pipe_w) |
14 | #define curpid ((loop)->curpid) |
30 | #define curpid ((loop)->curpid) |
15 | #define postfork ((loop)->postfork) |
31 | #define postfork ((loop)->postfork) |
16 | #define vec_ri ((loop)->vec_ri) |
32 | #define vec_ri ((loop)->vec_ri) |
17 | #define vec_ro ((loop)->vec_ro) |
33 | #define vec_ro ((loop)->vec_ro) |
18 | #define vec_wi ((loop)->vec_wi) |
34 | #define vec_wi ((loop)->vec_wi) |
19 | #define vec_wo ((loop)->vec_wo) |
35 | #define vec_wo ((loop)->vec_wo) |
|
|
36 | #define vec_eo ((loop)->vec_eo) |
20 | #define vec_max ((loop)->vec_max) |
37 | #define vec_max ((loop)->vec_max) |
21 | #define polls ((loop)->polls) |
38 | #define polls ((loop)->polls) |
22 | #define pollmax ((loop)->pollmax) |
39 | #define pollmax ((loop)->pollmax) |
23 | #define pollcnt ((loop)->pollcnt) |
40 | #define pollcnt ((loop)->pollcnt) |
24 | #define pollidxs ((loop)->pollidxs) |
41 | #define pollidxs ((loop)->pollidxs) |
… | |
… | |
30 | #define kqueue_changecnt ((loop)->kqueue_changecnt) |
47 | #define kqueue_changecnt ((loop)->kqueue_changecnt) |
31 | #define kqueue_events ((loop)->kqueue_events) |
48 | #define kqueue_events ((loop)->kqueue_events) |
32 | #define kqueue_eventmax ((loop)->kqueue_eventmax) |
49 | #define kqueue_eventmax ((loop)->kqueue_eventmax) |
33 | #define port_events ((loop)->port_events) |
50 | #define port_events ((loop)->port_events) |
34 | #define port_eventmax ((loop)->port_eventmax) |
51 | #define port_eventmax ((loop)->port_eventmax) |
35 | #define anfds ((loop)->anfds) |
|
|
36 | #define anfdmax ((loop)->anfdmax) |
|
|
37 | #define pendings ((loop)->pendings) |
|
|
38 | #define pendingmax ((loop)->pendingmax) |
|
|
39 | #define pendingcnt ((loop)->pendingcnt) |
|
|
40 | #define fdchanges ((loop)->fdchanges) |
52 | #define fdchanges ((loop)->fdchanges) |
41 | #define fdchangemax ((loop)->fdchangemax) |
53 | #define fdchangemax ((loop)->fdchangemax) |
42 | #define fdchangecnt ((loop)->fdchangecnt) |
54 | #define fdchangecnt ((loop)->fdchangecnt) |
43 | #define timers ((loop)->timers) |
55 | #define timers ((loop)->timers) |
44 | #define timermax ((loop)->timermax) |
56 | #define timermax ((loop)->timermax) |
… | |
… | |
57 | #define checkmax ((loop)->checkmax) |
69 | #define checkmax ((loop)->checkmax) |
58 | #define checkcnt ((loop)->checkcnt) |
70 | #define checkcnt ((loop)->checkcnt) |
59 | #define forks ((loop)->forks) |
71 | #define forks ((loop)->forks) |
60 | #define forkmax ((loop)->forkmax) |
72 | #define forkmax ((loop)->forkmax) |
61 | #define forkcnt ((loop)->forkcnt) |
73 | #define forkcnt ((loop)->forkcnt) |
|
|
74 | #define gotasync ((loop)->gotasync) |
|
|
75 | #define asyncs ((loop)->asyncs) |
|
|
76 | #define asyncmax ((loop)->asyncmax) |
|
|
77 | #define asynccnt ((loop)->asynccnt) |
62 | #define fs_fd ((loop)->fs_fd) |
78 | #define fs_fd ((loop)->fs_fd) |
63 | #define fs_w ((loop)->fs_w) |
79 | #define fs_w ((loop)->fs_w) |
|
|
80 | #define fs_2625 ((loop)->fs_2625) |
64 | #define fs_hash ((loop)->fs_hash) |
81 | #define fs_hash ((loop)->fs_hash) |
|
|
82 | #define userdata ((loop)->userdata) |
|
|
83 | #define suspend_cb ((loop)->suspend_cb) |
|
|
84 | #define resume_cb ((loop)->resume_cb) |
|
|
85 | #define invoke_cb ((loop)->invoke_cb) |
65 | #else |
86 | #else |
66 | #undef EV_WRAP_H |
87 | #undef EV_WRAP_H |
67 | #undef now_floor |
88 | #undef now_floor |
68 | #undef mn_now |
89 | #undef mn_now |
69 | #undef rtmn_diff |
90 | #undef rtmn_diff |
|
|
91 | #undef io_blocktime |
|
|
92 | #undef timeout_blocktime |
70 | #undef backend |
93 | #undef backend |
71 | #undef activecnt |
94 | #undef activecnt |
72 | #undef loop_count |
95 | #undef loop_count |
|
|
96 | #undef loop_depth |
|
|
97 | #undef loop_done |
|
|
98 | #undef backend_fd |
73 | #undef backend_fudge |
99 | #undef backend_fudge |
74 | #undef backend_modify |
100 | #undef backend_modify |
75 | #undef backend_poll |
101 | #undef backend_poll |
76 | #undef backend_fd |
102 | #undef anfds |
|
|
103 | #undef anfdmax |
|
|
104 | #undef pendings |
|
|
105 | #undef pendingmax |
|
|
106 | #undef pendingcnt |
|
|
107 | #undef pending_w |
|
|
108 | #undef rfeeds |
|
|
109 | #undef rfeedmax |
|
|
110 | #undef rfeedcnt |
|
|
111 | #undef evfd |
|
|
112 | #undef evpipe |
|
|
113 | #undef pipe_w |
77 | #undef curpid |
114 | #undef curpid |
78 | #undef postfork |
115 | #undef postfork |
79 | #undef vec_ri |
116 | #undef vec_ri |
80 | #undef vec_ro |
117 | #undef vec_ro |
81 | #undef vec_wi |
118 | #undef vec_wi |
82 | #undef vec_wo |
119 | #undef vec_wo |
|
|
120 | #undef vec_eo |
83 | #undef vec_max |
121 | #undef vec_max |
84 | #undef polls |
122 | #undef polls |
85 | #undef pollmax |
123 | #undef pollmax |
86 | #undef pollcnt |
124 | #undef pollcnt |
87 | #undef pollidxs |
125 | #undef pollidxs |
… | |
… | |
93 | #undef kqueue_changecnt |
131 | #undef kqueue_changecnt |
94 | #undef kqueue_events |
132 | #undef kqueue_events |
95 | #undef kqueue_eventmax |
133 | #undef kqueue_eventmax |
96 | #undef port_events |
134 | #undef port_events |
97 | #undef port_eventmax |
135 | #undef port_eventmax |
98 | #undef anfds |
|
|
99 | #undef anfdmax |
|
|
100 | #undef pendings |
|
|
101 | #undef pendingmax |
|
|
102 | #undef pendingcnt |
|
|
103 | #undef fdchanges |
136 | #undef fdchanges |
104 | #undef fdchangemax |
137 | #undef fdchangemax |
105 | #undef fdchangecnt |
138 | #undef fdchangecnt |
106 | #undef timers |
139 | #undef timers |
107 | #undef timermax |
140 | #undef timermax |
… | |
… | |
120 | #undef checkmax |
153 | #undef checkmax |
121 | #undef checkcnt |
154 | #undef checkcnt |
122 | #undef forks |
155 | #undef forks |
123 | #undef forkmax |
156 | #undef forkmax |
124 | #undef forkcnt |
157 | #undef forkcnt |
|
|
158 | #undef gotasync |
|
|
159 | #undef asyncs |
|
|
160 | #undef asyncmax |
|
|
161 | #undef asynccnt |
125 | #undef fs_fd |
162 | #undef fs_fd |
126 | #undef fs_w |
163 | #undef fs_w |
|
|
164 | #undef fs_2625 |
127 | #undef fs_hash |
165 | #undef fs_hash |
|
|
166 | #undef userdata |
|
|
167 | #undef suspend_cb |
|
|
168 | #undef resume_cb |
|
|
169 | #undef invoke_cb |
128 | #endif |
170 | #endif |