--- libeio/eio.pod 2009/11/29 15:53:48 1.5 +++ libeio/eio.pod 2011/05/31 10:09:38 1.6 @@ -13,14 +13,14 @@ time: L. Note that this library is a by-product of the C perl -module, and many of the subtler points regarding requets lifetime +module, and many of the subtler points regarding requests lifetime and so on are only documented in its documentation at the moment: L. =head2 FEATURES This library provides fully asynchronous versions of most POSIX functions -dealign with I/O. Unlike most asynchronous libraries, this not only +dealing with I/O. Unlike most asynchronous libraries, this not only includes C and C, but also C, C, C and similar functions, as well as less rarely ones such as C, C or C. @@ -39,7 +39,7 @@ Libeio represents time as a single floating point number, representing the (fractional) number of seconds since the (POSIX) epoch (somewhere near the beginning of 1970, details are complicated, don't ask). This type is -called C, but it is guarenteed to be of type C (or +called C, but it is guaranteed to be of type C (or better), so you can freely use C yourself. Unlike the name component C might indicate, it is also used for @@ -99,7 +99,7 @@ Note that C might return after C and C have been called again, so watch out for races in your code. -As with C, this callback is called while lcoks are being held, +As with C, this callback is called while locks are being held, so you I. =item int eio_poll () @@ -128,7 +128,7 @@ spurious wake-ups, but is generally harmless. For most other event loops, you would typically use a pipe - the event -loop should be told to wait for read readyness on the read end. In +loop should be told to wait for read readiness on the read end. In C you would write a single byte, in C you would try to read that byte, and in the callback for the read end, you would call C. The race is avoided here because the event loop should invoke @@ -187,7 +187,7 @@ Libeio uses threads internally to handle most requests, and will start and stop threads on demand. This call can be used to limit the number of idle threads (threads without -work to do): libeio will keep some threads idle in preperation for more +work to do): libeio will keep some threads idle in preparation for more requests, but never longer than C threads. In addition to this, libeio will also stop threads when they are idle for