… | |
… | |
90 | If undefined or defined to be "1", libev will compile in support |
90 | If undefined or defined to be "1", libev will compile in support |
91 | for the select(2) backend. No attempt at autodetection will be |
91 | for the select(2) backend. No attempt at autodetection will be |
92 | done: if no other method takes over, select will be it. Otherwise |
92 | done: if no other method takes over, select will be it. Otherwise |
93 | the select backend will not be compiled in. |
93 | the select backend will not be compiled in. |
94 | |
94 | |
|
|
95 | EV_SELECT_USE_WIN32_HANDLES |
|
|
96 | |
|
|
97 | When defined to 1, the select backend will assume that select |
|
|
98 | doesn't understand file descriptors but wants osf handles on |
|
|
99 | win32 (this is the case when the select to be used is the winsock |
|
|
100 | select). This means that it will call _get_osfhandle on the fd to |
|
|
101 | convert it to an OS handle. Should not be defined on non-win32 |
|
|
102 | platforms. |
|
|
103 | |
95 | EV_USE_POLL |
104 | EV_USE_POLL |
96 | |
105 | |
97 | If defined to be "1", libev will compile in support for the poll(2) |
106 | If defined to be "1", libev will compile in support for the poll(2) |
98 | backend. No attempt at autodetection will be done. poll usually |
107 | backend. No attempt at autodetection will be done. poll usually |
99 | performs worse than select, so its not enabled by default (it is |
108 | performs worse than select, so its not enabled by default (it is |
… | |
… | |
124 | |
133 | |
125 | For example, the perl EV module uses this: |
134 | For example, the perl EV module uses this: |
126 | |
135 | |
127 | #define EV_COMMON \ |
136 | #define EV_COMMON \ |
128 | SV *self; /* contains this struct */ \ |
137 | SV *self; /* contains this struct */ \ |
129 | SV *cb_sv, *fh; |
138 | SV *cb_sv, *fh /* note no trailing ";" */ |
130 | |
139 | |
131 | EV_PROTOTYPES |
140 | EV_PROTOTYPES |
132 | |
141 | |
133 | If defined to be "0", then "ev.h" will not define any function |
142 | If defined to be "0", then "ev.h" will not define any function |
134 | prototypes, but still define all the structs and other |
143 | prototypes, but still define all the structs and other |