… | |
… | |
246 | package Coro::Multicore; |
246 | package Coro::Multicore; |
247 | |
247 | |
248 | use Coro (); |
248 | use Coro (); |
249 | |
249 | |
250 | BEGIN { |
250 | BEGIN { |
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 | |
408 | The enable_times feature uses the per-thread timer to measure per-thread |
408 | The enable_times feature uses the per-thread timer to measure per-thread |
409 | execution time, but since Coro::Multicore runs threads on different |
409 | execution time, but since Coro::Multicore runs threads on different |
410 | pthreads it will get the wrong times. Real times are not affected. |
410 | pthreads it will get the wrong times. Real times are not affected. |
411 | |
411 | |
|
|
412 | =item Fork support |
|
|
413 | |
|
|
414 | Due to the nature of threads, you are not allowed to use this module in a |
|
|
415 | forked child normally, with one exception: If you don't create any threads |
|
|
416 | in 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> |