Help for this page

Select Code to Download


  1. or download this
    sub worker {
        my( $Q ) = shift:
    ...
            ## Perform output/cleanup
        }
    }
    
  2. or download this
    ## in the main thread:
    my $outputMutex : shared;
    ...
            lock $outputMutex;
            print OUTFILE ...
        }