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

Comparing Coro-Multicore/Multicore.pm (file contents):
Revision 1.21 by root, Sat Feb 29 21:40:07 2020 UTC vs.
Revision 1.22 by root, Tue Aug 3 14:15:39 2021 UTC

246package Coro::Multicore; 246package Coro::Multicore;
247 247
248use Coro (); 248use Coro ();
249 249
250BEGIN { 250BEGIN {
251 our $VERSION = '1.06'; 251 our $VERSION = '1.07';
252 252
253 use XSLoader; 253 use XSLoader;
254 XSLoader::load __PACKAGE__, $VERSION; 254 XSLoader::load __PACKAGE__, $VERSION;
255} 255}
256 256
407 407
408The enable_times feature uses the per-thread timer to measure per-thread 408The enable_times feature uses the per-thread timer to measure per-thread
409execution time, but since Coro::Multicore runs threads on different 409execution time, but since Coro::Multicore runs threads on different
410pthreads it will get the wrong times. Real times are not affected. 410pthreads it will get the wrong times. Real times are not affected.
411 411
412=item Fork support
413
414Due to the nature of threads, you are not allowed to use this module in a
415forked child normally, with one exception: If you don't create any threads
416in the parent, then it is safe to start using it in a forked child.
417
412=back 418=back
413 419
414=head1 AUTHOR 420=head1 AUTHOR
415 421
416 Marc Lehmann <schmorp@schmorp.de> 422 Marc Lehmann <schmorp@schmorp.de>

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines