Changeset a35b458 in mainline for kernel/test/thread/thread1.c
- Timestamp:
- 2018-03-02T20:10:49Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f1380b7
- Parents:
- 3061bc1
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:38:31)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-03-02 20:10:49)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/test/thread/thread1.c
r3061bc1 ra35b458 45 45 { 46 46 thread_detach(THREAD); 47 47 48 48 while (atomic_get(&finish)) { 49 49 TPRINTF("%" PRIu64 " ", THREAD->tid); … … 57 57 unsigned int i; 58 58 atomic_count_t total = 0; 59 59 60 60 atomic_set(&finish, 1); 61 61 atomic_set(&threads_finished, 0); 62 62 63 63 for (i = 0; i < THREADS; i++) { 64 64 thread_t *t; … … 71 71 total++; 72 72 } 73 73 74 74 TPRINTF("Running threads for 10 seconds...\n"); 75 75 thread_sleep(10); 76 76 77 77 atomic_set(&finish, 0); 78 78 while (atomic_get(&threads_finished) < total) { … … 80 80 thread_sleep(1); 81 81 } 82 82 83 83 return NULL; 84 84 }
Note:
See TracChangeset
for help on using the changeset viewer.