Rev 2216 | Rev 3069 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 2216 | Rev 2745 | ||
|---|---|---|---|
| Line 76... | Line 76... | ||
| 76 | if (!quiet) |
76 | if (!quiet) |
| 77 | printf("Running threads for 10 seconds...\n"); |
77 | printf("Running threads for 10 seconds...\n"); |
| 78 | thread_sleep(10); |
78 | thread_sleep(10); |
| 79 | 79 | ||
| 80 | atomic_set(&finish, 0); |
80 | atomic_set(&finish, 0); |
| 81 | while (atomic_get(&threads_finished) < total) { |
81 | while (atomic_get(&threads_finished) < ((long) total)) { |
| 82 | if (!quiet) |
82 | if (!quiet) |
| 83 | printf("Threads left: %d\n", total - atomic_get(&threads_finished)); |
83 | printf("Threads left: %d\n", total - atomic_get(&threads_finished)); |
| 84 | thread_sleep(1); |
84 | thread_sleep(1); |
| 85 | } |
85 | } |
| 86 | 86 | ||