… | |
… | |
127 | .\} |
127 | .\} |
128 | .rm #[ #] #H #V #F C |
128 | .rm #[ #] #H #V #F C |
129 | .\" ======================================================================== |
129 | .\" ======================================================================== |
130 | .\" |
130 | .\" |
131 | .IX Title ""<STANDARD INPUT>" 1" |
131 | .IX Title ""<STANDARD INPUT>" 1" |
132 | .TH "<STANDARD INPUT>" 1 "2007-11-22" "perl v5.8.8" "User Contributed Perl Documentation" |
132 | .TH "<STANDARD INPUT>" 1 "2007-11-23" "perl v5.8.8" "User Contributed Perl Documentation" |
133 | .SH "NAME" |
133 | .SH "NAME" |
134 | libev \- a high performance full\-featured event loop written in C |
134 | libev \- a high performance full\-featured event loop written in C |
135 | .SH "SYNOPSIS" |
135 | .SH "SYNOPSIS" |
136 | .IX Header "SYNOPSIS" |
136 | .IX Header "SYNOPSIS" |
137 | .Vb 1 |
137 | .Vb 1 |
… | |
… | |
314 | This uses the Solaris 10 port mechanism. As with everything on Solaris, |
314 | This uses the Solaris 10 port mechanism. As with everything on Solaris, |
315 | it's really slow, but it still scales very well (O(active_fds)). |
315 | it's really slow, but it still scales very well (O(active_fds)). |
316 | .ie n .IP """EVMETHOD_ALL""" 4 |
316 | .ie n .IP """EVMETHOD_ALL""" 4 |
317 | .el .IP "\f(CWEVMETHOD_ALL\fR" 4 |
317 | .el .IP "\f(CWEVMETHOD_ALL\fR" 4 |
318 | .IX Item "EVMETHOD_ALL" |
318 | .IX Item "EVMETHOD_ALL" |
319 | Try all backends (even potentially broken ones). Since this is a mask, you |
319 | Try all backends (even potentially broken ones that wouldn't be tried |
|
|
320 | with \f(CW\*(C`EVFLAG_AUTO\*(C'\fR). Since this is a mask, you can do stuff such as |
320 | can do stuff like \f(CW\*(C`EVMETHOD_ALL & ~EVMETHOD_KQUEUE\*(C'\fR. |
321 | \&\f(CW\*(C`EVMETHOD_ALL & ~EVMETHOD_KQUEUE\*(C'\fR. |
321 | .RE |
322 | .RE |
322 | .RS 4 |
323 | .RS 4 |
323 | .Sp |
324 | .Sp |
324 | If one or more of these are ored into the flags value, then only these |
325 | If one or more of these are ored into the flags value, then only these |
325 | backends will be tried (in the reverse order as given here). If none are |
326 | backends will be tried (in the reverse order as given here). If none are |
… | |
… | |
346 | This function reinitialises the kernel state for backends that have |
347 | This function reinitialises the kernel state for backends that have |
347 | one. Despite the name, you can call it anytime, but it makes most sense |
348 | one. Despite the name, you can call it anytime, but it makes most sense |
348 | after forking, in either the parent or child process (or both, but that |
349 | after forking, in either the parent or child process (or both, but that |
349 | again makes little sense). |
350 | again makes little sense). |
350 | .Sp |
351 | .Sp |
351 | You \fImust\fR call this function after forking if and only if you want to |
352 | You \fImust\fR call this function in the child process after forking if and |
352 | use the event library in both processes. If you just fork+exec, you don't |
353 | only if you want to use the event library in both processes. If you just |
353 | have to call it. |
354 | fork+exec, you don't have to call it. |
354 | .Sp |
355 | .Sp |
355 | The function itself is quite fast and it's usually not a problem to call |
356 | The function itself is quite fast and it's usually not a problem to call |
356 | it just in case after a fork. To make this easy, the function will fit in |
357 | it just in case after a fork. To make this easy, the function will fit in |
357 | quite nicely into a call to \f(CW\*(C`pthread_atfork\*(C'\fR: |
358 | quite nicely into a call to \f(CW\*(C`pthread_atfork\*(C'\fR: |
358 | .Sp |
359 | .Sp |