ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Coro/Coro.pm
(Generate patch)

Comparing Coro/Coro.pm (file contents):
Revision 1.326 by root, Sun Jun 1 19:55:41 2014 UTC vs.
Revision 1.337 by root, Sun Oct 4 13:10:22 2015 UTC

366 366
367our $idle; # idle handler 367our $idle; # idle handler
368our $main; # main coro 368our $main; # main coro
369our $current; # current coro 369our $current; # current coro
370 370
371our $VERSION = 6.38; 371our $VERSION = 6.48;
372 372
373our @EXPORT = qw(async async_pool cede schedule terminate current unblock_sub rouse_cb rouse_wait); 373our @EXPORT = qw(async async_pool cede schedule terminate current unblock_sub rouse_cb rouse_wait);
374our %EXPORT_TAGS = ( 374our %EXPORT_TAGS = (
375 prio => [qw(PRIO_MAX PRIO_HIGH PRIO_NORMAL PRIO_LOW PRIO_IDLE PRIO_MIN)], 375 prio => [qw(PRIO_MAX PRIO_HIGH PRIO_NORMAL PRIO_LOW PRIO_IDLE PRIO_MIN)],
376); 376);
1021otherwise you might suffer from crashes or worse. The only event library 1021otherwise you might suffer from crashes or worse. The only event library
1022currently known that is safe to use without C<unblock_sub> is L<EV> (but 1022currently known that is safe to use without C<unblock_sub> is L<EV> (but
1023you might still run into deadlocks if all event loops are blocked). 1023you might still run into deadlocks if all event loops are blocked).
1024 1024
1025Coro will try to catch you when you block in the event loop 1025Coro will try to catch you when you block in the event loop
1026("FATAL:$Coro::IDLE blocked itself"), but this is just best effort and 1026("FATAL: $Coro::idle blocked itself"), but this is just best effort and
1027only works when you do not run your own event loop. 1027only works when you do not run your own event loop.
1028 1028
1029This function allows your callbacks to block by executing them in another 1029This function allows your callbacks to block by executing them in another
1030coro where it is safe to block. One example where blocking is handy 1030coro where it is safe to block. One example where blocking is handy
1031is when you use the L<Coro::AIO|Coro::AIO> functions to save results to 1031is when you use the L<Coro::AIO|Coro::AIO> functions to save results to
1301 1301
1302XS API: L<Coro::MakeMaker>. 1302XS API: L<Coro::MakeMaker>.
1303 1303
1304Low level Configuration, Thread Environment, Continuations: L<Coro::State>. 1304Low level Configuration, Thread Environment, Continuations: L<Coro::State>.
1305 1305
1306=head1 AUTHOR 1306=head1 AUTHOR/SUPPORT/CONTACT
1307 1307
1308 Marc Lehmann <schmorp@schmorp.de> 1308 Marc A. Lehmann <schmorp@schmorp.de>
1309 http://home.schmorp.de/ 1309 http://software.schmorp.de/pkg/Coro.html
1310 1310
1311=cut 1311=cut
1312 1312

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines