… | |
… | |
40 | |
40 | |
41 | ev_select.c only when select backend is enabled (which is is by default) |
41 | ev_select.c only when select backend is enabled (which is is by default) |
42 | ev_poll.c only when poll backend is enabled (disabled by default) |
42 | ev_poll.c only when poll backend is enabled (disabled by default) |
43 | ev_epoll.c only when the epoll backend is enabled (disabled by default) |
43 | ev_epoll.c only when the epoll backend is enabled (disabled by default) |
44 | ev_kqueue.c only when the kqueue backend is enabled (disabled by default) |
44 | ev_kqueue.c only when the kqueue backend is enabled (disabled by default) |
|
|
45 | ev_port.c only when the solaris port backend is enabled (disabled by default) |
45 | |
46 | |
46 | "ev.c" includes the backend files directly when enabled. |
47 | "ev.c" includes the backend files directly when enabled. |
47 | |
48 | |
48 | LIBEVENT COMPATIBILITY API |
49 | LIBEVENT COMPATIBILITY API |
49 | |
50 | |
… | |
… | |
83 | will also not define any of the structs usually found in "event.h" |
84 | will also not define any of the structs usually found in "event.h" |
84 | that are not directly supported by libev code alone. |
85 | that are not directly supported by libev code alone. |
85 | |
86 | |
86 | EV_USE_MONOTONIC |
87 | EV_USE_MONOTONIC |
87 | |
88 | |
88 | If undefined or defined to be "1", libev will try to detect the |
89 | If defined to be "1", libev will try to detect the availability |
89 | availability of the monotonic clock option at both compiletime and |
90 | of the monotonic clock option at both compiletime and |
90 | runtime. Otherwise no use of the monotonic clock option will be |
91 | runtime. Otherwise no use of the monotonic clock option will be |
91 | attempted. |
92 | attempted. If you enable this, you usually have to link against |
|
|
93 | librt or something similar. Enabling it when the functionality |
|
|
94 | isn't available is safe, though. |
92 | |
95 | |
93 | EV_USE_REALTIME |
96 | EV_USE_REALTIME |
94 | |
97 | |
95 | If defined to be "1", libev will try to detect the availability |
98 | If defined to be "1", libev will try to detect the availability |
96 | of the realtime clock option at compiletime (and assume its |
99 | of the realtime clock option at compiletime (and assume its |
… | |
… | |
116 | (winsocket only allows 64 sockets). The FD_SETSIZE macro, set |
119 | (winsocket only allows 64 sockets). The FD_SETSIZE macro, set |
117 | before compilation, might influence the size of the fd_set used. |
120 | before compilation, might influence the size of the fd_set used. |
118 | |
121 | |
119 | EV_SELECT_IS_WINSOCKET |
122 | EV_SELECT_IS_WINSOCKET |
120 | |
123 | |
121 | When defined to 1, the select backend will assume that select |
124 | When defined to 1, the select backend will assume that |
122 | doesn't understand file descriptors but wants osf handles on |
125 | select/socket/connect etc. don't understand file descriptors but |
123 | win32 (this is the case when the select to be used is the winsock |
126 | wants osf handles on win32 (this is the case when the select to |
124 | select). This means that it will call _get_osfhandle on the fd to |
127 | be used is the winsock select). This means that it will call |
125 | convert it to an OS handle. Should not be defined on non-win32 |
128 | _get_osfhandle on the fd to convert it to an OS handle. Otherwise, |
126 | platforms. |
129 | it is assumed that all these functions actually work on fds, even |
|
|
130 | on win32. Should not be defined on non-win32 platforms. |
127 | |
131 | |
128 | EV_USE_POLL |
132 | EV_USE_POLL |
129 | |
133 | |
130 | If defined to be "1", libev will compile in support for the poll(2) |
134 | If defined to be "1", libev will compile in support for the poll(2) |
131 | backend. Otherwise it will be enabled on non-win32 platforms. It |
135 | backend. Otherwise it will be enabled on non-win32 platforms. It |
… | |
… | |
163 | The name of the ev.h header file used to include it. The default |
167 | The name of the ev.h header file used to include it. The default |
164 | if undefined is <ev.h> in event.h and "ev.h" in ev.c. This can |
168 | if undefined is <ev.h> in event.h and "ev.h" in ev.c. This can |
165 | be used to virtually rename the ev.h header file in case of |
169 | be used to virtually rename the ev.h header file in case of |
166 | conflicts. |
170 | conflicts. |
167 | |
171 | |
|
|
172 | EV_CONFIG_H |
|
|
173 | |
|
|
174 | If EV_STANDALONE isn't 1, this variable can be used to override |
|
|
175 | ev.c's idea of where to find the "config.h" file. |
|
|
176 | |
168 | EV_EVENT_H |
177 | EV_EVENT_H |
169 | |
178 | |
170 | Similarly to EV_H, this macro cna be used to override event.c's idea |
179 | Similarly to EV_H, this macro can be used to override event.c's idea |
171 | of how the event.h header can be found. |
180 | of how the event.h header can be found. |
172 | |
181 | |
173 | EV_PROTOTYPES |
182 | EV_PROTOTYPES |
174 | |
183 | |
175 | If defined to be "0", then "ev.h" will not define any function |
184 | If defined to be "0", then "ev.h" will not define any function |