Help for this page

Select Code to Download


  1. or download this
    $mutex->enter( $shared->set( $_ => $fetch->($_) ) );
    
    ...
    3. then stores the result into a shared hash
    4. finally, leaves the mutex
    
  2. or download this
        mce_loop {
            MCE->yield;
    ...
            # ...
        }
    
  3. or download this
        mce_loop {
            MCE->yield;
    ...
    
        }
    
  4. or download this
        tie my %hash, 'MCE::Shared';
        my $shared = MCE::Shared->hash();
    ...
        # 1 trip via the OO interface
        $shared->incrby( number => 2 );