Lines Matching refs:pmake_max_jobs
75 static int pmake_max_jobs = 0; variable
130 if ((pmake_max_jobs == 0) && in execute_parallel()
139 pmake_max_jobs = atoi(dmake_value->string_mb); in execute_parallel()
140 if (pmake_max_jobs <= 0) { in execute_parallel()
143 pmake_max_jobs = PMAKE_DEF_MAX_JOBS; in execute_parallel()
160 if ((pmake_max_jobs = read_make_machines(make_machines_name)) <= 0) { in execute_parallel()
161 pmake_max_jobs = PMAKE_DEF_MAX_JOBS; in execute_parallel()
268 adjust_pmake_max_jobs (int pmake_max_jobs) in adjust_pmake_max_jobs() argument
280 if (getloadavg(loadavg, 3) != 3) return(pmake_max_jobs); in adjust_pmake_max_jobs()
282 if (adjustment < 2) return(pmake_max_jobs); in adjust_pmake_max_jobs()
286 adjusted_max_jobs = pmake_max_jobs - adjustment; in adjust_pmake_max_jobs()
357 if (sem_init(m2_shm_sem, 1, pmake_max_jobs)) { in m2_init()
568 while (parallel_process_cnt >= adjust_pmake_max_jobs (pmake_max_jobs)) { in distribute_process()
591 while (parallel_process_cnt >= pmake_max_jobs) { in distribute_process()
598 while (parallel_process_cnt >= pmake_max_jobs) { in distribute_process()