Subversion Repositories HelenOS

Rev

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 188... Line 188...
188
    thr_cache = slab_cache_create("thread_cache", size, 0,
188
    thr_cache = slab_cache_create("thread_cache", size, 0,
189
                      NULL, NULL,
189
                      NULL, NULL,
190
                      0);
190
                      0);
191
    semaphore_initialize(&thr_sem,0);
191
    semaphore_initialize(&thr_sem,0);
192
    for (i = 0; i < THREADS; i++) {  
192
    for (i = 0; i < THREADS; i++) {  
193
        if (!(t = thread_create(slabtest, NULL, TASK, 0, "slabtest")))
193
        if (!(t = thread_create(slabtest, NULL, TASK, 0, "slabtest", false)))
194
            printf("Could not create thread %d\n", i);
194
            printf("Could not create thread %d\n", i);
195
        else
195
        else
196
            thread_ready(t);
196
            thread_ready(t);
197
    }
197
    }
198
    thread_sleep(1);
198
    thread_sleep(1);