Rev 2028 | Rev 2050 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2028 | Rev 2042 | ||
---|---|---|---|
Line 62... | Line 62... | ||
62 | 62 | ||
63 | rwlock_initialize(&rwlock); |
63 | rwlock_initialize(&rwlock); |
64 | rwlock_write_lock(&rwlock); |
64 | rwlock_write_lock(&rwlock); |
65 | 65 | ||
66 | for (i = 0; i < 4; i++) { |
66 | for (i = 0; i < 4; i++) { |
67 | thrd = thread_create(reader, NULL, TASK, 0, "reader"); |
67 | thrd = thread_create(reader, NULL, TASK, 0, "reader", false); |
68 | if (thrd) |
68 | if (thrd) |
69 | thread_ready(thrd); |
69 | thread_ready(thrd); |
70 | else |
70 | else |
71 | printf("Could not create reader %d\n", i); |
71 | printf("Could not create reader %d\n", i); |
72 | } |
72 | } |