1 | .\" Automatically generated by Pod::Man 2.25 (Pod::Simple 3.16) |
1 | .\" Automatically generated by Pod::Man 2.25 (Pod::Simple 3.20) |
2 | .\" |
2 | .\" |
3 | .\" Standard preamble: |
3 | .\" Standard preamble: |
4 | .\" ======================================================================== |
4 | .\" ======================================================================== |
5 | .de Sp \" Vertical space (when we can't use .PP) |
5 | .de Sp \" Vertical space (when we can't use .PP) |
6 | .if t .sp .5v |
6 | .if t .sp .5v |
… | |
… | |
122 | .\} |
122 | .\} |
123 | .rm #[ #] #H #V #F C |
123 | .rm #[ #] #H #V #F C |
124 | .\" ======================================================================== |
124 | .\" ======================================================================== |
125 | .\" |
125 | .\" |
126 | .IX Title "LIBEV 3" |
126 | .IX Title "LIBEV 3" |
127 | .TH LIBEV 3 "2013-02-18" "libev-4.11" "libev - high performance full featured event loop" |
127 | .TH LIBEV 3 "2013-06-07" "libev-4.15" "libev - high performance full featured event loop" |
128 | .\" For nroff, turn off justification. Always turn off hyphenation; it makes |
128 | .\" For nroff, turn off justification. Always turn off hyphenation; it makes |
129 | .\" way too many mistakes in technical documents. |
129 | .\" way too many mistakes in technical documents. |
130 | .if n .ad l |
130 | .if n .ad l |
131 | .nh |
131 | .nh |
132 | .SH "NAME" |
132 | .SH "NAME" |
… | |
… | |
514 | .IX Item "EVFLAG_NOENV" |
514 | .IX Item "EVFLAG_NOENV" |
515 | If this flag bit is or'ed into the flag value (or the program runs setuid |
515 | If this flag bit is or'ed into the flag value (or the program runs setuid |
516 | or setgid) then libev will \fInot\fR look at the environment variable |
516 | or setgid) then libev will \fInot\fR look at the environment variable |
517 | \&\f(CW\*(C`LIBEV_FLAGS\*(C'\fR. Otherwise (the default), this environment variable will |
517 | \&\f(CW\*(C`LIBEV_FLAGS\*(C'\fR. Otherwise (the default), this environment variable will |
518 | override the flags completely if it is found in the environment. This is |
518 | override the flags completely if it is found in the environment. This is |
519 | useful to try out specific backends to test their performance, or to work |
519 | useful to try out specific backends to test their performance, to work |
520 | around bugs. |
520 | around bugs, or to make libev threadsafe (accessing environment variables |
|
|
521 | cannot be done in a threadsafe way, but usually it works if no other |
|
|
522 | thread modifies them). |
521 | .ie n .IP """EVFLAG_FORKCHECK""" 4 |
523 | .ie n .IP """EVFLAG_FORKCHECK""" 4 |
522 | .el .IP "\f(CWEVFLAG_FORKCHECK\fR" 4 |
524 | .el .IP "\f(CWEVFLAG_FORKCHECK\fR" 4 |
523 | .IX Item "EVFLAG_FORKCHECK" |
525 | .IX Item "EVFLAG_FORKCHECK" |
524 | Instead of calling \f(CW\*(C`ev_loop_fork\*(C'\fR manually after a fork, you can also |
526 | Instead of calling \f(CW\*(C`ev_loop_fork\*(C'\fR manually after a fork, you can also |
525 | make libev check for a fork in each iteration by enabling this flag. |
527 | make libev check for a fork in each iteration by enabling this flag. |
… | |
… | |
4731 | between threads, that is, threads can be used, but threads never run on |
4733 | between threads, that is, threads can be used, but threads never run on |
4732 | different cpus (or different cpu cores). This reduces dependencies |
4734 | different cpus (or different cpu cores). This reduces dependencies |
4733 | and makes libev faster. |
4735 | and makes libev faster. |
4734 | .IP "\s-1EV_NO_THREADS\s0" 4 |
4736 | .IP "\s-1EV_NO_THREADS\s0" 4 |
4735 | .IX Item "EV_NO_THREADS" |
4737 | .IX Item "EV_NO_THREADS" |
4736 | If defined to be \f(CW1\fR, libev will assume that it will never be called |
4738 | If defined to be \f(CW1\fR, libev will assume that it will never be called from |
4737 | from different threads, which is a stronger assumption than \f(CW\*(C`EV_NO_SMP\*(C'\fR, |
4739 | different threads (that includes signal handlers), which is a stronger |
4738 | above. This reduces dependencies and makes libev faster. |
4740 | assumption than \f(CW\*(C`EV_NO_SMP\*(C'\fR, above. This reduces dependencies and makes |
|
|
4741 | libev faster. |
4739 | .IP "\s-1EV_ATOMIC_T\s0" 4 |
4742 | .IP "\s-1EV_ATOMIC_T\s0" 4 |
4740 | .IX Item "EV_ATOMIC_T" |
4743 | .IX Item "EV_ATOMIC_T" |
4741 | Libev requires an integer type (suitable for storing \f(CW0\fR or \f(CW1\fR) whose |
4744 | Libev requires an integer type (suitable for storing \f(CW0\fR or \f(CW1\fR) whose |
4742 | access is atomic with respect to other threads or signal contexts. No |
4745 | access is atomic with respect to other threads or signal contexts. No |
4743 | such type is easily found in the C language, so you can provide your own |
4746 | such type is easily found in the C language, so you can provide your own |