Lines Matching refs:nproc
57 const int nproc, in check_delay() argument
65 if (us - us0 < delay_exit * (nproc - 1) / nproc) in check_delay()
68 if (us - us0 > delay_exit * (nproc + 1) / nproc) in check_delay()
71 if (us1 - us < delay_enter * (nproc - 1) / nproc) in check_delay()
74 if (us1 - us > delay_enter * (nproc + 1) / nproc) in check_delay()
79 run(const int nproc, const int delay_enter, const int delay_exit) in run() argument
83 for (int i = 0; i < nproc; ++i, prev = now) { in run()
95 check_delay(&prev, &ts, &now, nproc, delay_enter, delay_exit); in run()
107 const int nproc = atoi(av[1]); in main() local
108 if (nproc <= 1) in main()
119 for (int i = 0; i < nproc; ++i) { in main()
123 usleep(MAX(delay_enter, delay_exit) / nproc); in main()
125 run(nproc, delay_enter, delay_exit); in main()