Lines Matching defs:loops
92 PRInt32 loops;
101 static PRIntervalTime NonContentiousLock(PRInt32 loops)
104 while (loops-- > 0)
124 while (contention->loops-- > 0)
146 static PRIntervalTime ContentiousLock(PRInt32 loops)
152 contention.loops = loops;
163 while (contention.loops > 0)
179 const char* msg, PRIntervalTime (*test)(PRInt32 loops),
180 PRInt32 loops, PRIntervalTime overhead)
194 PRIntervalTime predicted = test(loops);
205 if (debug_mode) printf("%8.2f usecs/iteration\n", elapsed/loops);
214 PRInt32 loops = 100;
249 if (argc > 1) loops = atoi(argv[1]);
250 if (loops == 0) loops = 100;
251 if (debug_mode) printf("Lock: Using %d loops\n", loops);
263 duration = Test("LockFile non-contentious locking/unlocking", NonContentiousLock, loops, 0);
264 (void)Test("LockFile contentious locking/unlocking", ContentiousLock, loops, duration);