ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libev/ev.3
(Generate patch)

Comparing libev/ev.3 (file contents):
Revision 1.3 by root, Thu Nov 22 12:28:27 2007 UTC vs.
Revision 1.5 by root, Fri Nov 23 04:36:03 2007 UTC

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"
134libev \- a high performance full\-featured event loop written in C 134libev \- 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
314This uses the Solaris 10 port mechanism. As with everything on Solaris, 314This uses the Solaris 10 port mechanism. As with everything on Solaris,
315it's really slow, but it still scales very well (O(active_fds)). 315it'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"
319Try all backends (even potentially broken ones). Since this is a mask, you 319Try all backends (even potentially broken ones that wouldn't be tried
320with \f(CW\*(C`EVFLAG_AUTO\*(C'\fR). Since this is a mask, you can do stuff such as
320can 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
324If one or more of these are ored into the flags value, then only these 325If one or more of these are ored into the flags value, then only these
325backends will be tried (in the reverse order as given here). If none are 326backends will be tried (in the reverse order as given here). If none are
346This function reinitialises the kernel state for backends that have 347This function reinitialises the kernel state for backends that have
347one. Despite the name, you can call it anytime, but it makes most sense 348one. Despite the name, you can call it anytime, but it makes most sense
348after forking, in either the parent or child process (or both, but that 349after forking, in either the parent or child process (or both, but that
349again makes little sense). 350again makes little sense).
350.Sp 351.Sp
351You \fImust\fR call this function after forking if and only if you want to 352You \fImust\fR call this function in the child process after forking if and
352use the event library in both processes. If you just fork+exec, you don't 353only if you want to use the event library in both processes. If you just
353have to call it. 354fork+exec, you don't have to call it.
354.Sp 355.Sp
355The function itself is quite fast and it's usually not a problem to call 356The function itself is quite fast and it's usually not a problem to call
356it just in case after a fork. To make this easy, the function will fit in 357it just in case after a fork. To make this easy, the function will fit in
357quite nicely into a call to \f(CW\*(C`pthread_atfork\*(C'\fR: 358quite nicely into a call to \f(CW\*(C`pthread_atfork\*(C'\fR:
358.Sp 359.Sp

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines