1 | /* |
1 | /* |
2 | * loop member variable declarations |
2 | * loop member variable declarations |
3 | * |
3 | * |
4 | * Copyright (c) 2007 Marc Alexander Lehmann <libev@schmorp.de> |
4 | * Copyright (c) 2007,2008 Marc Alexander Lehmann <libev@schmorp.de> |
5 | * All rights reserved. |
5 | * All rights reserved. |
6 | * |
6 | * |
7 | * Redistribution and use in source and binary forms, with or without modifica- |
7 | * Redistribution and use in source and binary forms, with or without modifica- |
8 | * tion, are permitted provided that the following conditions are met: |
8 | * tion, are permitted provided that the following conditions are met: |
9 | * |
9 | * |
… | |
… | |
53 | VARx(int, backend_fd) |
53 | VARx(int, backend_fd) |
54 | VARx(ev_tstamp, backend_fudge) /* assumed typical timer resolution */ |
54 | VARx(ev_tstamp, backend_fudge) /* assumed typical timer resolution */ |
55 | VAR (backend_modify, void (*backend_modify)(EV_P_ int fd, int oev, int nev)) |
55 | VAR (backend_modify, void (*backend_modify)(EV_P_ int fd, int oev, int nev)) |
56 | VAR (backend_poll , void (*backend_poll)(EV_P_ ev_tstamp timeout)) |
56 | VAR (backend_poll , void (*backend_poll)(EV_P_ ev_tstamp timeout)) |
57 | |
57 | |
|
|
58 | VARx(ANFD *, anfds) |
|
|
59 | VARx(int, anfdmax) |
|
|
60 | |
|
|
61 | VAR (pendings, ANPENDING *pendings [NUMPRI]) |
|
|
62 | VAR (pendingmax, int pendingmax [NUMPRI]) |
|
|
63 | VAR (pendingcnt, int pendingcnt [NUMPRI]) |
|
|
64 | VARx(ev_prepare, pending_w) /* dummy pending watcher */ |
|
|
65 | |
|
|
66 | /* for reverse feeding of events */ |
|
|
67 | VARx(W *, rfeeds) |
|
|
68 | VARx(int, rfeedmax) |
|
|
69 | VARx(int, rfeedcnt) |
|
|
70 | |
|
|
71 | #if EV_USE_EVENTFD || EV_GENWRAP |
|
|
72 | VARx(int, evfd) |
|
|
73 | #endif |
|
|
74 | VAR (evpipe, int evpipe [2]) |
|
|
75 | VARx(ev_io, pipe_w) |
|
|
76 | |
58 | #if !defined(_WIN32) || EV_GENWRAP |
77 | #if !defined(_WIN32) || EV_GENWRAP |
59 | VARx(pid_t, curpid) |
78 | VARx(pid_t, curpid) |
60 | #endif |
79 | #endif |
61 | |
80 | |
62 | VARx(int, postfork) /* true if we need to recreate kernel state after fork */ |
81 | VARx(char, postfork) /* true if we need to recreate kernel state after fork */ |
63 | |
82 | |
64 | #if EV_USE_SELECT || EV_GENWRAP |
83 | #if EV_USE_SELECT || EV_GENWRAP |
65 | VARx(void *, vec_ri) |
84 | VARx(void *, vec_ri) |
66 | VARx(void *, vec_ro) |
85 | VARx(void *, vec_ro) |
67 | VARx(void *, vec_wi) |
86 | VARx(void *, vec_wi) |
68 | VARx(void *, vec_wo) |
87 | VARx(void *, vec_wo) |
|
|
88 | #if defined(_WIN32) || EV_GENWRAP |
|
|
89 | VARx(void *, vec_eo) |
|
|
90 | #endif |
69 | VARx(int, vec_max) |
91 | VARx(int, vec_max) |
70 | #endif |
92 | #endif |
71 | |
93 | |
72 | #if EV_USE_POLL || EV_GENWRAP |
94 | #if EV_USE_POLL || EV_GENWRAP |
73 | VARx(struct pollfd *, polls) |
95 | VARx(struct pollfd *, polls) |
… | |
… | |
93 | #if EV_USE_PORT || EV_GENWRAP |
115 | #if EV_USE_PORT || EV_GENWRAP |
94 | VARx(struct port_event *, port_events) |
116 | VARx(struct port_event *, port_events) |
95 | VARx(int, port_eventmax) |
117 | VARx(int, port_eventmax) |
96 | #endif |
118 | #endif |
97 | |
119 | |
98 | VARx(ANFD *, anfds) |
|
|
99 | VARx(int, anfdmax) |
|
|
100 | |
|
|
101 | VAR (pendings, ANPENDING *pendings [NUMPRI]) |
|
|
102 | VAR (pendingmax, int pendingmax [NUMPRI]) |
|
|
103 | VAR (pendingcnt, int pendingcnt [NUMPRI]) |
|
|
104 | |
|
|
105 | VARx(int *, fdchanges) |
120 | VARx(int *, fdchanges) |
106 | VARx(int, fdchangemax) |
121 | VARx(int, fdchangemax) |
107 | VARx(int, fdchangecnt) |
122 | VARx(int, fdchangecnt) |
108 | |
123 | |
109 | VARx(WT *, timers) |
124 | VARx(ANHE *, timers) |
110 | VARx(int, timermax) |
125 | VARx(int, timermax) |
111 | VARx(int, timercnt) |
126 | VARx(int, timercnt) |
112 | |
127 | |
113 | #if EV_PERIODIC_ENABLE || EV_GENWRAP |
128 | #if EV_PERIODIC_ENABLE || EV_GENWRAP |
114 | VARx(WT *, periodics) |
129 | VARx(ANHE *, periodics) |
115 | VARx(int, periodicmax) |
130 | VARx(int, periodicmax) |
116 | VARx(int, periodiccnt) |
131 | VARx(int, periodiccnt) |
117 | #endif |
132 | #endif |
118 | |
133 | |
119 | #if EV_IDLE_ENABLE || EV_GENWRAP |
134 | #if EV_IDLE_ENABLE || EV_GENWRAP |
… | |
… | |
135 | VARx(struct ev_fork **, forks) |
150 | VARx(struct ev_fork **, forks) |
136 | VARx(int, forkmax) |
151 | VARx(int, forkmax) |
137 | VARx(int, forkcnt) |
152 | VARx(int, forkcnt) |
138 | #endif |
153 | #endif |
139 | |
154 | |
|
|
155 | VARx(EV_ATOMIC_T, gotasync) |
|
|
156 | #if EV_ASYNC_ENABLE || EV_GENWRAP |
|
|
157 | VARx(struct ev_async **, asyncs) |
|
|
158 | VARx(int, asyncmax) |
|
|
159 | VARx(int, asynccnt) |
|
|
160 | #endif |
|
|
161 | |
140 | #if EV_USE_INOTIFY || EV_GENWRAP |
162 | #if EV_USE_INOTIFY || EV_GENWRAP |
141 | VARx(int, fs_fd) |
163 | VARx(int, fs_fd) |
142 | VARx(ev_io, fs_w) |
164 | VARx(ev_io, fs_w) |
|
|
165 | VARx(char, fs_2625) /* whether we are running in linux 2.6.25 or newer */ |
143 | VAR (fs_hash, ANFS fs_hash [EV_INOTIFY_HASHSIZE]) |
166 | VAR (fs_hash, ANFS fs_hash [EV_INOTIFY_HASHSIZE]) |
144 | #endif |
167 | #endif |
145 | |
168 | |
146 | #undef VARx |
169 | #undef VARx |
147 | |
170 | |