Rev 2042 | Rev 2071 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2042 | Rev 2050 | ||
---|---|---|---|
Line 53... | Line 53... | ||
53 | rwlock_write_lock(&rwlock); |
53 | rwlock_write_lock(&rwlock); |
54 | rwlock_write_unlock(&rwlock); |
54 | rwlock_write_unlock(&rwlock); |
55 | printf("cpu%d, tid %d: success\n", CPU->id, THREAD->tid); |
55 | printf("cpu%d, tid %d: success\n", CPU->id, THREAD->tid); |
56 | } |
56 | } |
57 | 57 | ||
58 | char * test_rwlock3(void) |
58 | char * test_rwlock3(bool quiet) |
59 | { |
59 | { |
60 | int i; |
60 | int i; |
61 | thread_t *thrd; |
61 | thread_t *thrd; |
62 | 62 | ||
63 | rwlock_initialize(&rwlock); |
63 | rwlock_initialize(&rwlock); |