Changeset 036e97c in mainline for kernel/test/thread/thread1.c
- Timestamp:
- 2018-09-07T15:52:40Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e3306d04
- Parents:
- e9d2905
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/test/thread/thread1.c
re9d2905 r036e97c 46 46 thread_detach(THREAD); 47 47 48 while (atomic_ get(&finish)) {48 while (atomic_load(&finish)) { 49 49 TPRINTF("%" PRIu64 " ", THREAD->tid); 50 50 thread_usleep(100000); … … 76 76 77 77 atomic_set(&finish, 0); 78 while (atomic_ get(&threads_finished) < total) {79 TPRINTF("Threads left: %zu\n", total - atomic_ get(&threads_finished));78 while (atomic_load(&threads_finished) < total) { 79 TPRINTF("Threads left: %zu\n", total - atomic_load(&threads_finished)); 80 80 thread_sleep(1); 81 81 }
Note:
See TracChangeset
for help on using the changeset viewer.