… | |
… | |
314 | =head1 THE C<AnyEvent::Fork> CLASS |
314 | =head1 THE C<AnyEvent::Fork> CLASS |
315 | |
315 | |
316 | This module exports nothing, and only implements a single class - |
316 | This module exports nothing, and only implements a single class - |
317 | C<AnyEvent::Fork>. |
317 | C<AnyEvent::Fork>. |
318 | |
318 | |
319 | There are two constructors that both create new processes - C<new> and |
319 | There are two class constructors that both create new processes - C<new> |
320 | C<new_exec>. The C<fork> method creates a new process by forking an |
320 | and C<new_exec>. The C<fork> method creates a new process by forking an |
321 | existing one and could be considered a third constructor. |
321 | existing one and could be considered a third constructor. |
322 | |
322 | |
323 | Most of the remaining methods deal with preparing the new process, by |
323 | Most of the remaining methods deal with preparing the new process, by |
324 | loading code, evaluating code and sending data to the new process. They |
324 | loading code, evaluating code and sending data to the new process. They |
325 | usually return the process object, so you can chain method calls. |
325 | usually return the process object, so you can chain method calls. |
… | |
… | |
344 | use IO::FDPass; |
344 | use IO::FDPass; |
345 | |
345 | |
346 | our $VERSION = 0.5; |
346 | our $VERSION = 0.5; |
347 | |
347 | |
348 | our $PERL; # the path to the perl interpreter, deduces with various forms of magic |
348 | our $PERL; # the path to the perl interpreter, deduces with various forms of magic |
349 | |
|
|
350 | =item my $pool = new AnyEvent::Fork key => value... |
|
|
351 | |
|
|
352 | Create a new process pool. The following named parameters are supported: |
|
|
353 | |
349 | |
354 | =over 4 |
350 | =over 4 |
355 | |
351 | |
356 | =back |
352 | =back |
357 | |
353 | |