Lines Matching defs:hammer
44 ** Description: Test to hammer on various components of NSPR
246 static Hammer_t hammer[100];
354 hammer[active].ml = ml;
355 hammer[active].cv = cv;
356 hammer[active].id = id++;
357 hammer[active].writes = 0;
358 hammer[active].action = sg_go;
359 hammer[active].problem = sg_okay;
360 hammer[active].limit = (Random() % limit) + 1;
361 hammer[active].timein = PR_IntervalNow();
362 hammer[active].thread = PR_CreateThread(
363 PR_USER_THREAD, Thread, &hammer[active],
379 if (hammer[poll].action == sg_go) /* don't overwrite done */
380 hammer[poll].action = sg_stop; /* ask him to stop */
389 while (hammer[poll].action < sg_done)
394 (void)PR_JoinThread(hammer[poll].thread);
395 hammer[poll].thread = NULL;
396 if (hammer[poll].problem == sg_okay)
399 PR_IntervalNow() - hammer[poll].timein);
400 writes = hammer[poll].writes * 1000 / duration;
405 writesTot += hammer[poll].writes;
411 programName, where[hammer[poll].problem], duration);