Changes in kernel/test/thread/thread1.c [a35b458:6eef3c4] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/test/thread/thread1.c
ra35b458 r6eef3c4 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.