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

Comparing cvsroot/Coro/Coro.pm (file contents):
Revision 1.217 by root, Fri Nov 14 23:48:10 2008 UTC vs.
Revision 1.219 by root, Sun Nov 16 00:55:41 2008 UTC

275 } 275 }
276 } 276 }
277} 277}
278 278
279sub async_pool(&@) { 279sub async_pool(&@) {
280 # this is also inlined into the unlock_scheduler 280 # this is also inlined into the unblock_scheduler
281 my $coro = (pop @async_pool) || new Coro \&pool_handler; 281 my $coro = (pop @async_pool) || new Coro \&pool_handler;
282 282
283 $coro->{_invoke} = [@_]; 283 $coro->{_invoke} = [@_];
284 $coro->ready; 284 $coro->ready;
285 285
667 667
668=head1 BUGS/LIMITATIONS 668=head1 BUGS/LIMITATIONS
669 669
670=over 4 670=over 4
671 671
672=item fork with pthread backend
673
674When Coro is compiled using the pthread backend (which isn't recommended
675but required on many BSDs as their libcs are completely broken), then
676coroutines will not survive a fork. There is no known workaround except to
677fix your libc and use a saner backend.
678
672=item perl process emulation ("threads") 679=item perl process emulation ("threads")
673 680
674This module is not perl-pseudo-thread-safe. You should only ever use this 681This module is not perl-pseudo-thread-safe. You should only ever use this
675module from the same thread (this requirement might be removed in the 682module from the same thread (this requirement might be removed in the
676future to allow per-thread schedulers, but Coro::State does not yet allow 683future to allow per-thread schedulers, but Coro::State does not yet allow

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines