… | |
… | |
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 |
… | |
… | |
145 | otherwise another method will be used as fallback. This is the |
149 | otherwise another method will be used as fallback. This is the |
146 | preferred backend for BSD and BSD-like systems. Darwin brokenness |
150 | preferred backend for BSD and BSD-like systems. Darwin brokenness |
147 | will be detected at runtime and routed around by disabling this |
151 | will be detected at runtime and routed around by disabling this |
148 | backend. |
152 | backend. |
149 | |
153 | |
|
|
154 | EV_USE_PORT |
|
|
155 | |
|
|
156 | If defined to be "1", libev will compile in support for the Solaris |
|
|
157 | 10 port style backend. Its availability will be detected at runtime, |
|
|
158 | otherwise another method will be used as fallback. This is the |
|
|
159 | preferred backend for Solaris 10 systems. |
|
|
160 | |
150 | EV_USE_DEVPOLL |
161 | EV_USE_DEVPOLL |
151 | EV_USE_PORTS |
|
|
152 | |
162 | |
153 | reserved for future expansion, works like the USE symbols above. |
163 | reserved for future expansion, works like the USE symbols above. |
154 | |
164 | |
155 | EV_H |
165 | EV_H |
156 | |
166 | |