… | |
… | |
113 | |
113 | |
114 | |
114 | |
115 | The second very portable backend is poll(2). It does not exist on windows |
115 | The second very portable backend is poll(2). It does not exist on windows |
116 | and various versions of Mac OS X (and on the other versions it simply |
116 | and various versions of Mac OS X (and on the other versions it simply |
117 | doesn't work), but works basically everywhere else. It is recommended to use |
117 | doesn't work), but works basically everywhere else. It is recommended to use |
118 | the default here unless you run into compile problems in ev_poll.c. |
118 | the default here unless you run into compilation problems in ev_poll.c. |
119 | |
119 | |
120 | EOF |
120 | EOF |
121 | |
121 | |
122 | $DEFINE .= " -DEV_USE_POLL=" . (0 + (prompt ("Enable poll backend (y/n)?", (have_inc "poll.h") ? "y" : "n") =~ /[yY]/)); |
122 | $DEFINE .= " -DEV_USE_POLL=" . (0 + (prompt ("Enable poll backend (y/n)?", (have_inc "poll.h") ? "y" : "n") =~ /[yY]/)); |
123 | |
123 | |
… | |
… | |
365 | |
365 | |
366 | Very rarely, people want to tweak EV even more, e.g. to exclude |
366 | Very rarely, people want to tweak EV even more, e.g. to exclude |
367 | or include certain watcher types or backends. This can be done by adding |
367 | or include certain watcher types or backends. This can be done by adding |
368 | extra -D options here, or via the EV_EXTRA_DEFS environment variable. |
368 | extra -D options here, or via the EV_EXTRA_DEFS environment variable. |
369 | |
369 | |
370 | For example, if you run into compile problems because of missing memory |
370 | For example, if you run into compilation problems because of missing memory |
371 | fences (or you just want extra performance), you can tell EV to not support |
371 | fences (or you just want extra performance), you can tell EV to not support |
372 | smp and threads via -DEV_NO_THREADS. |
372 | smp and threads via -DEV_NO_THREADS. |
373 | |
373 | |
374 | Normal persons just press enter. |
374 | Normal persons just press enter. |
375 | |
375 | |