Changeset 1886 in ProjectBuilder


Ignore:
Timestamp:
Jun 26, 2014, 3:42:07 AM (10 years ago)
Author:
Bruno Cornec
Message:
  • Homogeneize the module 2 * pbparallel counter to avoid sync issues. That part should be factorized !
File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb/bin/pb

    r1878 r1886  
    872872    foreach my $v (split(/,/,$ENV{'PBV'})) {
    873873        $counter++;
    874         # Modulo pbparallel
    875         $counter = 1 if ((defined $pbparallel) && ($counter > $pbparallel));
     874        # Modulo 2 * pbparallel (to avoid synchronization problems)
     875        $counter = 1 if ((defined $pbparallel) && ($counter > 2 * $pbparallel));
    876876        $pm->start($counter) and next if (defined $pbparallel);
    877877
     
    31503150foreach my $v (@$vm) {
    31513151    $counter++;
    3152     # Modulo pbparallel
    3153     $counter = 1 if ((defined $pbparallel) && ($counter > $pbparallel));
     3152    # Modulo 2 * pbparallel (to avoid synchronization problems)
     3153    $counter = 1 if ((defined $pbparallel) && ($counter > 2 * $pbparallel));
    31543154    $pm->start($counter) and next if (defined $pbparallel);
    31553155
Note: See TracChangeset for help on using the changeset viewer.