Changes in kernel/test/thread/thread1.c [228666c:cb01e1e] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/test/thread/thread1.c
r228666c rcb01e1e 55 55 char *test_thread1(void) 56 56 { 57 unsigned int i; 58 atomic_count_t total = 0; 57 unsigned int i, total = 0; 59 58 60 59 atomic_set(&finish, 1); 61 60 atomic_set(&threads_finished, 0); 62 61 63 for (i = 0; i < THREADS; i++) { 62 for (i = 0; i < THREADS; i++) { 64 63 thread_t *t; 65 64 if (!(t = thread_create(threadtest, NULL, TASK, 0, "threadtest", false))) { … … 75 74 76 75 atomic_set(&finish, 0); 77 while (atomic_get(&threads_finished) < total) {76 while (atomic_get(&threads_finished) < ((long) total)) { 78 77 TPRINTF("Threads left: %d\n", total - atomic_get(&threads_finished)); 79 78 thread_sleep(1);
Note:
See TracChangeset
for help on using the changeset viewer.