… | |
… | |
131 | .\} |
131 | .\} |
132 | .rm #[ #] #H #V #F C |
132 | .rm #[ #] #H #V #F C |
133 | .\" ======================================================================== |
133 | .\" ======================================================================== |
134 | .\" |
134 | .\" |
135 | .IX Title "LIBEV 3" |
135 | .IX Title "LIBEV 3" |
136 | .TH LIBEV 3 "2020-01-22" "libev-4.31" "libev - high performance full featured event loop" |
136 | .TH LIBEV 3 "2020-03-12" "libev-4.31" "libev - high performance full featured event loop" |
137 | .\" For nroff, turn off justification. Always turn off hyphenation; it makes |
137 | .\" For nroff, turn off justification. Always turn off hyphenation; it makes |
138 | .\" way too many mistakes in technical documents. |
138 | .\" way too many mistakes in technical documents. |
139 | .if n .ad l |
139 | .if n .ad l |
140 | .nh |
140 | .nh |
141 | .SH "NAME" |
141 | .SH "NAME" |
… | |
… | |
1772 | .PP |
1772 | .PP |
1773 | Most members are additionally marked with either \fI[read\-only]\fR, meaning |
1773 | Most members are additionally marked with either \fI[read\-only]\fR, meaning |
1774 | that, while the watcher is active, you can look at the member and expect |
1774 | that, while the watcher is active, you can look at the member and expect |
1775 | some sensible content, but you must not modify it (you can modify it while |
1775 | some sensible content, but you must not modify it (you can modify it while |
1776 | the watcher is stopped to your hearts content), or \fI[read\-write]\fR, which |
1776 | the watcher is stopped to your hearts content), or \fI[read\-write]\fR, which |
1777 | means you can expect it to have some sensible content while the watcher |
1777 | means you can expect it to have some sensible content while the watcher is |
1778 | is active, but you can also modify it. Modifying it may not do something |
1778 | active, but you can also modify it (within the same thread as the event |
|
|
1779 | loop, i.e. without creating data races). Modifying it may not do something |
1779 | sensible or take immediate effect (or do anything at all), but libev will |
1780 | sensible or take immediate effect (or do anything at all), but libev will |
1780 | not crash or malfunction in any way. |
1781 | not crash or malfunction in any way. |
1781 | .PP |
1782 | .PP |
1782 | In any case, the documentation for each member will explain what the |
1783 | In any case, the documentation for each member will explain what the |
1783 | effects are, and if there are any additional access restrictions. |
1784 | effects are, and if there are any additional access restrictions. |
… | |
… | |
1964 | supported, but not specially optimized \- if your program sometimes happens |
1965 | supported, but not specially optimized \- if your program sometimes happens |
1965 | to generate this combination this is fine, but if it is easy to avoid |
1966 | to generate this combination this is fine, but if it is easy to avoid |
1966 | starting an io watcher watching for no events you should do so. |
1967 | starting an io watcher watching for no events you should do so. |
1967 | .IP "ev_io_modify (ev_io *, int events)" 4 |
1968 | .IP "ev_io_modify (ev_io *, int events)" 4 |
1968 | .IX Item "ev_io_modify (ev_io *, int events)" |
1969 | .IX Item "ev_io_modify (ev_io *, int events)" |
1969 | Similar to \f(CW\*(C`ev_io_set\*(C'\fR, but only changes the event mask. Using this might |
1970 | Similar to \f(CW\*(C`ev_io_set\*(C'\fR, but only changes the requested events. Using this |
1970 | be faster with some backends, as libev can assume that the \f(CW\*(C`fd\*(C'\fR still |
1971 | might be faster with some backends, as libev can assume that the \f(CW\*(C`fd\*(C'\fR |
1971 | refers to the same underlying file description, something it cannot do |
1972 | still refers to the same underlying file description, something it cannot |
1972 | when using \f(CW\*(C`ev_io_set\*(C'\fR. |
1973 | do when using \f(CW\*(C`ev_io_set\*(C'\fR. |
1973 | .IP "int fd [no\-modify]" 4 |
1974 | .IP "int fd [no\-modify]" 4 |
1974 | .IX Item "int fd [no-modify]" |
1975 | .IX Item "int fd [no-modify]" |
1975 | The file descriptor being watched. While it can be read at any time, you |
1976 | The file descriptor being watched. While it can be read at any time, you |
1976 | must not modify this member even when the watcher is stopped \- always use |
1977 | must not modify this member even when the watcher is stopped \- always use |
1977 | \&\f(CW\*(C`ev_io_set\*(C'\fR for that. |
1978 | \&\f(CW\*(C`ev_io_set\*(C'\fR for that. |