… | |
… | |
2014 | |
2014 | |
2015 | =item EV_USE_DEVPOLL |
2015 | =item EV_USE_DEVPOLL |
2016 | |
2016 | |
2017 | reserved for future expansion, works like the USE symbols above. |
2017 | reserved for future expansion, works like the USE symbols above. |
2018 | |
2018 | |
|
|
2019 | =item EV_USE_INOTIFY |
|
|
2020 | |
|
|
2021 | If defined to be C<1>, libev will compile in support for the Linux inotify |
|
|
2022 | interface to speed up C<ev_stat> watchers. Its actual availability will |
|
|
2023 | be detected at runtime. |
|
|
2024 | |
2019 | =item EV_H |
2025 | =item EV_H |
2020 | |
2026 | |
2021 | The name of the F<ev.h> header file used to include it. The default if |
2027 | The name of the F<ev.h> header file used to include it. The default if |
2022 | undefined is C<< <ev.h> >> in F<event.h> and C<"ev.h"> in F<ev.c>. This |
2028 | undefined is C<< <ev.h> >> in F<event.h> and C<"ev.h"> in F<ev.c>. This |
2023 | can be used to virtually rename the F<ev.h> header file in case of conflicts. |
2029 | can be used to virtually rename the F<ev.h> header file in case of conflicts. |
… | |
… | |
2078 | =item EV_PID_HASHSIZE |
2084 | =item EV_PID_HASHSIZE |
2079 | |
2085 | |
2080 | C<ev_child> watchers use a small hash table to distribute workload by |
2086 | C<ev_child> watchers use a small hash table to distribute workload by |
2081 | pid. The default size is C<16> (or C<1> with C<EV_MINIMAL>), usually more |
2087 | pid. The default size is C<16> (or C<1> with C<EV_MINIMAL>), usually more |
2082 | than enough. If you need to manage thousands of children you might want to |
2088 | than enough. If you need to manage thousands of children you might want to |
2083 | increase this value. |
2089 | increase this value (I<must> be a power of two). |
|
|
2090 | |
|
|
2091 | =item EV_INOTIFY_HASHSIZE |
|
|
2092 | |
|
|
2093 | C<ev_staz> watchers use a small hash table to distribute workload by |
|
|
2094 | inotify watch id. The default size is C<16> (or C<1> with C<EV_MINIMAL>), |
|
|
2095 | usually more than enough. If you need to manage thousands of C<ev_stat> |
|
|
2096 | watchers you might want to increase this value (I<must> be a power of |
|
|
2097 | two). |
2084 | |
2098 | |
2085 | =item EV_COMMON |
2099 | =item EV_COMMON |
2086 | |
2100 | |
2087 | By default, all watchers have a C<void *data> member. By redefining |
2101 | By default, all watchers have a C<void *data> member. By redefining |
2088 | this macro to a something else you can include more and other types of |
2102 | this macro to a something else you can include more and other types of |
… | |
… | |
2148 | |
2162 | |
2149 | =item Starting io/check/prepare/idle/signal/child watchers: O(1) |
2163 | =item Starting io/check/prepare/idle/signal/child watchers: O(1) |
2150 | |
2164 | |
2151 | =item Stopping check/prepare/idle watchers: O(1) |
2165 | =item Stopping check/prepare/idle watchers: O(1) |
2152 | |
2166 | |
2153 | =item Stopping an io/signal/child watcher: O(number_of_watchers_for_this_(fd/signal/pid % 16)) |
2167 | =item Stopping an io/signal/child watcher: O(number_of_watchers_for_this_(fd/signal/pid % EV_PID_HASHSIZE)) |
2154 | |
2168 | |
2155 | =item Finding the next timer per loop iteration: O(1) |
2169 | =item Finding the next timer per loop iteration: O(1) |
2156 | |
2170 | |
2157 | =item Each change on a file descriptor per loop iteration: O(number_of_watchers_for_this_fd) |
2171 | =item Each change on a file descriptor per loop iteration: O(number_of_watchers_for_this_fd) |
2158 | |
2172 | |