Rev 2029 | Rev 2050 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 2029 | Rev 2042 | ||
|---|---|---|---|
| Line 136... | Line 136... | ||
| 136 | thr_cache = slab_cache_create("thread_cache", THR_MEM_SIZE, 0, |
136 | thr_cache = slab_cache_create("thread_cache", THR_MEM_SIZE, 0, |
| 137 | NULL, NULL, |
137 | NULL, NULL, |
| 138 | SLAB_CACHE_NOMAGAZINE); |
138 | SLAB_CACHE_NOMAGAZINE); |
| 139 | semaphore_initialize(&thr_sem, 0); |
139 | semaphore_initialize(&thr_sem, 0); |
| 140 | for (i = 0; i < THREADS; i++) { |
140 | for (i = 0; i < THREADS; i++) { |
| 141 | if (!(t = thread_create(slabtest, (void *) (unative_t) i, TASK, 0, "slabtest"))) |
141 | if (!(t = thread_create(slabtest, (void *) (unative_t) i, TASK, 0, "slabtest", false))) |
| 142 | printf("Could not create thread %d\n", i); |
142 | printf("Could not create thread %d\n", i); |
| 143 | else |
143 | else |
| 144 | thread_ready(t); |
144 | thread_ready(t); |
| 145 | } |
145 | } |
| 146 | 146 | ||