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

Comparing libev/ev.3 (file contents):
Revision 1.69 by root, Sat Jul 5 02:25:40 2008 UTC vs.
Revision 1.70 by root, Sun Jul 6 03:36:51 2008 UTC

130.\} 130.\}
131.rm #[ #] #H #V #F C 131.rm #[ #] #H #V #F C
132.\" ======================================================================== 132.\" ========================================================================
133.\" 133.\"
134.IX Title "LIBEV 3" 134.IX Title "LIBEV 3"
135.TH LIBEV 3 "2008-06-19" "libev-3.43" "libev - high performance full featured event loop" 135.TH LIBEV 3 "2008-07-05" "libev-3.43" "libev - high performance full featured event loop"
136.\" For nroff, turn off justification. Always turn off hyphenation; it makes 136.\" For nroff, turn off justification. Always turn off hyphenation; it makes
137.\" way too many mistakes in technical documents. 137.\" way too many mistakes in technical documents.
138.if n .ad l 138.if n .ad l
139.nh 139.nh
140.SH "NAME" 140.SH "NAME"
3273parallel from multiple threads, calls with the same loop parameter must be 3273parallel from multiple threads, calls with the same loop parameter must be
3274done serially (but can be done from different threads, as long as only one 3274done serially (but can be done from different threads, as long as only one
3275thread ever is inside a call at any point in time, e.g. by using a mutex 3275thread ever is inside a call at any point in time, e.g. by using a mutex
3276per loop). 3276per loop).
3277.PP 3277.PP
3278If you want to know which design is best for your problem, then I cannot 3278If you want to know which design (one loop, locking, or multiple loops
3279help you but by giving some generic advice: 3279without or something else still) is best for your problem, then I cannot
3280help you. I can give some generic advice however:
3280.IP "\(bu" 4 3281.IP "\(bu" 4
3281most applications have a main thread: use the default libev loop 3282most applications have a main thread: use the default libev loop
3282in that thread, or create a separate thread running only the default loop. 3283in that thread, or create a separate thread running only the default loop.
3283.Sp 3284.Sp
3284This helps integrating other libraries or software modules that use libev 3285This helps integrating other libraries or software modules that use libev

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines