Help for this page

Select Code to Download


  1. or download this
    # Possibly named argument syntax:
    threads->create('stack' => $size,
    ...
    threads->create( { 'stack' => $size,
                       'code'  => 'function', # or sub{} or \&func
                       'args'  => ... } );
    
  2. or download this
    # Set the 'default' thread stack size
    threads->set_stack_size(1_000_000);
    ...
        my @args = @_;
        ...
    }