Changeset aa85487 in mainline for kernel/test/thread/thread1.c
- Timestamp:
- 2010-03-07T15:11:56Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade
- Children:
- aadf01e
- Parents:
- 2e99277 (diff), 137691a (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/test/thread/thread1.c
r2e99277 raa85487 53 53 } 54 54 55 c har *test_thread1(void)55 const char *test_thread1(void) 56 56 { 57 unsigned int i, total = 0; 57 unsigned int i; 58 atomic_count_t total = 0; 58 59 59 60 atomic_set(&finish, 1); 60 61 atomic_set(&threads_finished, 0); 61 62 62 for (i = 0; i < THREADS; i++) { 63 for (i = 0; i < THREADS; i++) { 63 64 thread_t *t; 64 65 if (!(t = thread_create(threadtest, NULL, TASK, 0, "threadtest", false))) { … … 74 75 75 76 atomic_set(&finish, 0); 76 while (atomic_get(&threads_finished) < ((long) total)) {77 while (atomic_get(&threads_finished) < total) { 77 78 TPRINTF("Threads left: %d\n", total - atomic_get(&threads_finished)); 78 79 thread_sleep(1);
Note:
See TracChangeset
for help on using the changeset viewer.