Rev 2216 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2216 | Rev 2745 | ||
---|---|---|---|
Line 149... | Line 149... | ||
149 | printf("ok\n"); |
149 | printf("ok\n"); |
150 | 150 | ||
151 | thread_sleep(1); |
151 | thread_sleep(1); |
152 | waitq_wakeup(&can_start, WAKEUP_ALL); |
152 | waitq_wakeup(&can_start, WAKEUP_ALL); |
153 | 153 | ||
154 | while (atomic_get(&threads_ok) != total) { |
154 | while (atomic_get(&threads_ok) != (long) total) { |
155 | if (!quiet) |
155 | if (!quiet) |
156 | printf("Threads left: %d\n", total - atomic_get(&threads_ok)); |
156 | printf("Threads left: %d\n", total - atomic_get(&threads_ok)); |
157 | thread_sleep(1); |
157 | thread_sleep(1); |
158 | } |
158 | } |
159 | 159 |