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

Comparing libev/ev.pod (file contents):
Revision 1.64 by root, Sat Dec 1 15:32:53 2007 UTC vs.
Revision 1.65 by ayin, Sat Dec 1 15:38:54 2007 UTC

274a fork, you can also make libev check for a fork in each iteration by 274a fork, you can also make libev check for a fork in each iteration by
275enabling this flag. 275enabling this flag.
276 276
277This works by calling C<getpid ()> on every iteration of the loop, 277This works by calling C<getpid ()> on every iteration of the loop,
278and thus this might slow down your event loop if you do a lot of loop 278and thus this might slow down your event loop if you do a lot of loop
279iterations and little real work, but is usually not noticable (on my 279iterations and little real work, but is usually not noticeable (on my
280Linux system for example, C<getpid> is actually a simple 5-insn sequence 280Linux system for example, C<getpid> is actually a simple 5-insn sequence
281without a syscall and thus I<very> fast, but my Linux system also has 281without a syscall and thus I<very> fast, but my Linux system also has
282C<pthread_atfork> which is even faster). 282C<pthread_atfork> which is even faster).
283 283
284The big advantage of this flag is that you can forget about fork (and 284The big advantage of this flag is that you can forget about fork (and

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines