Subversion Repositories HelenOS

Rev

Rev 4263 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4263 Rev 4581
Line 146... Line 146...
146
    atomic_set(&thread_count, rd + wr);
146
    atomic_set(&thread_count, rd + wr);
147
   
147
   
148
    thread_t *thrd;
148
    thread_t *thrd;
149
   
149
   
150
    context_save(&ctx);
150
    context_save(&ctx);
151
    TPRINTF("sp=%#x, readers_in=%" PRIc "\n", ctx.sp, rwlock.readers_in);
151
    TPRINTF("sp=%#x, readers_in=%" PRIs "\n", ctx.sp, rwlock.readers_in);
152
    TPRINTF("Creating %" PRIu32 " readers\n", rd);
152
    TPRINTF("Creating %" PRIu32 " readers\n", rd);
153
   
153
   
154
    for (i = 0; i < rd; i++) {
154
    for (i = 0; i < rd; i++) {
155
        thrd = thread_create(reader, NULL, TASK, 0, "reader", false);
155
        thrd = thread_create(reader, NULL, TASK, 0, "reader", false);
156
        if (thrd)
156
        if (thrd)