Changes in kernel/test/thread/thread1.c [3cfe2b8:a35b458] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/test/thread/thread1.c
r3cfe2b8 ra35b458 46 46 thread_detach(THREAD); 47 47 48 while (atomic_ load(&finish)) {48 while (atomic_get(&finish)) { 49 49 TPRINTF("%" PRIu64 " ", THREAD->tid); 50 50 thread_usleep(100000); … … 56 56 { 57 57 unsigned int i; 58 size_t total = 0;58 atomic_count_t total = 0; 59 59 60 atomic_s tore(&finish, 1);61 atomic_s tore(&threads_finished, 0);60 atomic_set(&finish, 1); 61 atomic_set(&threads_finished, 0); 62 62 63 63 for (i = 0; i < THREADS; i++) { … … 75 75 thread_sleep(10); 76 76 77 atomic_s tore(&finish, 0);78 while (atomic_ load(&threads_finished) < total) {79 TPRINTF("Threads left: % zu\n", total - atomic_load(&threads_finished));77 atomic_set(&finish, 0); 78 while (atomic_get(&threads_finished) < total) { 79 TPRINTF("Threads left: %" PRIua "\n", total - atomic_get(&threads_finished)); 80 80 thread_sleep(1); 81 81 }
Note:
See TracChangeset
for help on using the changeset viewer.