Rev 2029 | Rev 2050 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 2029 | Rev 2042 | ||
|---|---|---|---|
| Line 120... | Line 120... | ||
| 120 | printf("Creating %d threads... ", 2 * THREADS); |
120 | printf("Creating %d threads... ", 2 * THREADS); |
| 121 | 121 | ||
| 122 | for (i = 0; i < THREADS; i++) { |
122 | for (i = 0; i < THREADS; i++) { |
| 123 | thread_t *t; |
123 | thread_t *t; |
| 124 | 124 | ||
| 125 | if (!(t = thread_create(testit1, (void *) ((unative_t) 2 * i), TASK, 0, "testit1"))) { |
125 | if (!(t = thread_create(testit1, (void *) ((unative_t) 2 * i), TASK, 0, "testit1", false))) { |
| 126 | printf("could not create thread %d\n", 2 * i); |
126 | printf("could not create thread %d\n", 2 * i); |
| 127 | break; |
127 | break; |
| 128 | } |
128 | } |
| 129 | thread_ready(t); |
129 | thread_ready(t); |
| 130 | total++; |
130 | total++; |
| 131 | 131 | ||
| 132 | if (!(t = thread_create(testit2, (void *) ((unative_t) 2 * i + 1), TASK, 0, "testit2"))) { |
132 | if (!(t = thread_create(testit2, (void *) ((unative_t) 2 * i + 1), TASK, 0, "testit2", false))) { |
| 133 | printf("could not create thread %d\n", 2 * i + 1); |
133 | printf("could not create thread %d\n", 2 * i + 1); |
| 134 | break; |
134 | break; |
| 135 | } |
135 | } |
| 136 | thread_ready(t); |
136 | thread_ready(t); |
| 137 | total++; |
137 | total++; |