Subversion Repositories HelenOS

Rev

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

Rev 2745 Rev 3069
Line 106... Line 106...
106
 
106
 
107
        thread_sleep(1);
107
        thread_sleep(1);
108
        waitq_wakeup(&can_start, WAKEUP_ALL);
108
        waitq_wakeup(&can_start, WAKEUP_ALL);
109
   
109
   
110
        while ((items_read.count != readers) || (items_written.count != writers)) {
110
        while ((items_read.count != readers) || (items_written.count != writers)) {
111
            printf("%zd readers remaining, %zd writers remaining, readers_in=%zd\n", readers - items_read.count, writers - items_written.count, rwlock.readers_in);
111
            printf("%d readers remaining, %d writers remaining, readers_in=%d\n", readers - items_read.count, writers - items_written.count, rwlock.readers_in);
112
            thread_usleep(100000);
112
            thread_usleep(100000);
113
        }
113
        }
114
    }
114
    }
115
   
115
   
116
    return NULL;
116
    return NULL;