Help for this page

Select Code to Download


  1. or download this
    ...
       print "create thread\n";
    ...
       $run = 0;
       $thread->join;
    }
    
  2. or download this
       $thread = threads->new(\&LTG::scanChange::monitor());
    
  3. or download this
    sub test{ print 'Hello world' }
    
    ...
    print \&test()
    Hello world
    SCALAR(0x1bc2d18)
    
  4. or download this
    thread failed to start: Not a CODE reference at ...
    
  5. or download this
    # Do some stuff
    $thread->new( ...); # start a thread
    ...
    
    $thread->join; # Wait for the thread to finish.
    # do some other stuff.