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

Comparing libev/ev.pod (file contents):
Revision 1.169 by root, Fri Jun 20 23:31:19 2008 UTC vs.
Revision 1.170 by root, Sat Jul 5 02:25:40 2008 UTC

3188parallel from multiple threads, calls with the same loop parameter must be 3188parallel from multiple threads, calls with the same loop parameter must be
3189done serially (but can be done from different threads, as long as only one 3189done serially (but can be done from different threads, as long as only one
3190thread ever is inside a call at any point in time, e.g. by using a mutex 3190thread ever is inside a call at any point in time, e.g. by using a mutex
3191per loop). 3191per loop).
3192 3192
3193If you want to know which design is best for your problem, then I cannot 3193If you want to know which design (one loop, locking, or multiple loops
3194help you but by giving some generic advice: 3194without or something else still) is best for your problem, then I cannot
3195help you. I can give some generic advice however:
3195 3196
3196=over 4 3197=over 4
3197 3198
3198=item * most applications have a main thread: use the default libev loop 3199=item * most applications have a main thread: use the default libev loop
3199in that thread, or create a separate thread running only the default loop. 3200in that thread, or create a separate thread running only the default loop.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines