Changeset 1126 in ProjectBuilder for devel/pb/bin/pb
- Timestamp:
- Dec 13, 2010, 2:53:10 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/pb/bin/pb
r1125 r1126 498 498 # Check for command requirements 499 499 # 500 my ($req,$opt ) = pb_conf_get_if("oscmd","oscmdopt");500 my ($req,$opt,$pbpara) = pb_conf_get_if("oscmd","oscmdopt","pbparallel"); 501 501 my ($req2,$opt2) = (undef,undef); 502 502 $req2 = $req->{$appname} if (defined $req); … … 507 507 # Check if we can launch some actions in // with Parallel::ForkManager 508 508 # 509 my $pbparallel = 12; 509 my $pbparallel = $pbpara->{$appname} if (defined $pbpara); 510 if (not defined $pbparallel) { 511 eval 512 { 513 require Sys::CPU; 514 Sys::CPU->import(); 515 }; 516 if ($@) { 517 # Sys::CPU not found, defaulting to 1 518 $pbparallel = 1; 519 } else { 520 # Using the number of cores 521 $pbparallel = Sys::CPU::cpu_count(); 522 } 523 } 524 510 525 eval 511 526 {
Note:
See TracChangeset
for help on using the changeset viewer.