Rev 3153 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3153 | Rev 3191 | ||
---|---|---|---|
Line 214... | Line 214... | ||
214 | 214 | ||
215 | if (!quiet) |
215 | if (!quiet) |
216 | printf("Running stress test with size %d\n", size); |
216 | printf("Running stress test with size %d\n", size); |
217 | 217 | ||
218 | condvar_initialize(&thread_starter); |
218 | condvar_initialize(&thread_starter); |
219 | mutex_initialize(&starter_mutex); |
219 | mutex_initialize(&starter_mutex, MUTEX_PASSIVE); |
220 | 220 | ||
221 | thr_cache = slab_cache_create("thread_cache", size, 0, NULL, NULL, 0); |
221 | thr_cache = slab_cache_create("thread_cache", size, 0, NULL, NULL, 0); |
222 | semaphore_initialize(&thr_sem,0); |
222 | semaphore_initialize(&thr_sem,0); |
223 | for (i = 0; i < THREADS; i++) { |
223 | for (i = 0; i < THREADS; i++) { |
224 | if (!(t = thread_create(slabtest, NULL, TASK, 0, "slabtest", false))) { |
224 | if (!(t = thread_create(slabtest, NULL, TASK, 0, "slabtest", false))) { |