Changeset 217 for trunk/src/gmake/job.c


Ignore:
Timestamp:
Feb 8, 2005, 8:22:20 AM (20 years ago)
Author:
bird
Message:

More proper .NOTPARALLEL.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gmake/job.c

    r192 r217  
    812812        lastc->next = c->next;
    813813
     814      /* update not_parallel if the file was flagged for that. */
     815      if ((c->file->command_flags & COMMANDS_NOTPARALLEL) && not_parallel >= 1)
     816        --not_parallel;
     817
    814818      free_child (c);
    815819
     
    13971401  /* If we are running at least one job already and the load average
    13981402     is too high, make this one wait.  */
    1399   if (!c->remote && job_slots_used > 0 && load_too_high ())
     1403  if (!c->remote && job_slots_used > 0 &&
     1404      (not_parallel || (c->file->command_flags & COMMANDS_NOTPARALLEL) || load_too_high ()))
    14001405    {
    14011406      /* Put this child on the chain of children waiting for the load average
     
    14061411      return 0;
    14071412    }
     1413
     1414  if (c->file->command_flags & COMMANDS_NOTPARALLEL)
     1415    ++not_parallel;
    14081416
    14091417  /* Start the first command; reap_children will run later command lines.  */
     
    14301438    case cs_finished:
    14311439      notice_finished_file (f);
     1440      if ((c->file->command_flags & COMMANDS_NOTPARALLEL) && not_parallel >= 1)
     1441        --not_parallel;
    14321442      free_child (c);
    14331443      break;
     
    19241934    if (job_slots_used > 0)
    19251935      --job_slots_used;
     1936
     1937    /* update not_parallel if the file was flagged for that. */
     1938    if ((c->file->command_flags & COMMANDS_NOTPARALLEL) && not_parallel >= 1)
     1939      --not_parallel;
    19261940
    19271941    /* If the job failed, and the -k flag was not given, die.  */
Note: See TracChangeset for help on using the changeset viewer.