Lines Matching defs:N_PROC
29 #ifndef N_PROC
30 #define N_PROC 64
33 #define N_OBJ (N_PROC*64*1024) /* #objects to insert */
35 #define PROGRESS (N_OBJ/(N_PROC*4)) /* amount done */
69 static Proc_t Proc[N_PROC]; /* process workloads */
70 static int Pnum = N_PROC+1; /* start as parent */
132 while(asogetint(&State->insert) != N_PROC) /* wait until all processes are set */
164 while(asogetint(&State->delete) != N_PROC) /* wait until all processes are set */
192 pid_t pid[N_PROC];
225 objn = N_OBJ/N_PROC;
228 for(k = 1; k < N_PROC; ++k)
230 Proc[k].objn = k < (N_PROC-1) ? objn : N_OBJ - (k*objn);
248 #if N_PROC <= 1
253 for(k = 0; k < N_PROC; ++k)
269 if(asogetint(&State->idone) == N_PROC)
277 asocasint(&State->idone, N_PROC, 0);
281 if(asogetint(&State->ddone) == N_PROC) /* wait until all are deleted */
294 twait(pid, -N_PROC);