Help for this page

Select Code to Download


  1. or download this
    sub processGraph {
            print "Total node count = " . $graph->nodecount() . "\n";
    ...
                    my $thr = threads->new(\&calcFoo, $graph, $id, $node);
            }
    }
    
  2. or download this
    sub calcFoo {
            my ($graph, $id, $node) = @_;
    ...
            print "$graph\n";
            print "Total node count = " . $graph->nodecount() . " in threa
    +d\n";
    }
    
  3. or download this
    main=HASH(0x9165900)
    thread failed to start: Can't call method "nodecount" without a packag
    +e or object reference at new_processor line 69.