Changeset e3306d04 in mainline for kernel/test/thread/thread1.c
- Timestamp:
- 2018-09-07T15:54:32Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5f1d850
- Parents:
- 036e97c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/test/thread/thread1.c
r036e97c re3306d04 58 58 atomic_count_t total = 0; 59 59 60 atomic_s et(&finish, 1);61 atomic_s et(&threads_finished, 0);60 atomic_store(&finish, 1); 61 atomic_store(&threads_finished, 0); 62 62 63 63 for (i = 0; i < THREADS; i++) { … … 75 75 thread_sleep(10); 76 76 77 atomic_s et(&finish, 0);77 atomic_store(&finish, 0); 78 78 while (atomic_load(&threads_finished) < total) { 79 79 TPRINTF("Threads left: %zu\n", total - atomic_load(&threads_finished));
Note:
See TracChangeset
for help on using the changeset viewer.