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

Comparing libev/ev.pod (file contents):
Revision 1.384 by sf-exg, Sun Oct 16 11:02:57 2011 UTC vs.
Revision 1.385 by root, Tue Nov 29 15:10:05 2011 UTC

1020can be done relatively simply by putting mutex_lock/unlock calls around 1020can be done relatively simply by putting mutex_lock/unlock calls around
1021each call to a libev function. 1021each call to a libev function.
1022 1022
1023However, C<ev_run> can run an indefinite time, so it is not feasible 1023However, C<ev_run> can run an indefinite time, so it is not feasible
1024to wait for it to return. One way around this is to wake up the event 1024to wait for it to return. One way around this is to wake up the event
1025loop via C<ev_break> and C<av_async_send>, another way is to set these 1025loop via C<ev_break> and C<ev_async_send>, another way is to set these
1026I<release> and I<acquire> callbacks on the loop. 1026I<release> and I<acquire> callbacks on the loop.
1027 1027
1028When set, then C<release> will be called just before the thread is 1028When set, then C<release> will be called just before the thread is
1029suspended waiting for new events, and C<acquire> is called just 1029suspended waiting for new events, and C<acquire> is called just
1030afterwards. 1030afterwards.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines