Subversion Repositories HelenOS

Rev

Rev 2927 | Rev 3153 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2927 Rev 3149
Line 135... Line 135...
135
    int i, j;
135
    int i, j;
136
   
136
   
137
    thread_detach(THREAD);
137
    thread_detach(THREAD);
138
   
138
   
139
    if (!sh_quiet)
139
    if (!sh_quiet)
140
        printf("Starting thread #%llu...\n", THREAD->tid);
140
        printf("Starting thread #%" PRIu64 "...\n", THREAD->tid);
141
   
141
   
142
    for (j = 0; j < 10; j++) {
142
    for (j = 0; j < 10; j++) {
143
        for (i = 0; i < THR_MEM_COUNT; i++)
143
        for (i = 0; i < THR_MEM_COUNT; i++)
144
            thr_data[offs][i] = slab_alloc(thr_cache,0);
144
            thr_data[offs][i] = slab_alloc(thr_cache,0);
145
        for (i = 0; i < THR_MEM_COUNT / 2; i++)
145
        for (i = 0; i < THR_MEM_COUNT / 2; i++)
Line 149... Line 149...
149
        for (i = 0; i < THR_MEM_COUNT; i++)
149
        for (i = 0; i < THR_MEM_COUNT; i++)
150
            slab_free(thr_cache, thr_data[offs][i]);
150
            slab_free(thr_cache, thr_data[offs][i]);
151
    }
151
    }
152
   
152
   
153
    if (!sh_quiet)
153
    if (!sh_quiet)
154
        printf("Thread #%llu finished\n", THREAD->tid);
154
        printf("Thread #" PRIu64 " finished\n", THREAD->tid);
155
   
155
   
156
    semaphore_up(&thr_sem);
156
    semaphore_up(&thr_sem);
157
}
157
}
158
 
158
 
159
static void testthreads(bool quiet)
159
static void testthreads(bool quiet)