Changeset 46c20c8 in mainline for uspace/app/tester/thread/thread1.c
- Timestamp:
- 2010-11-26T20:08:10Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 45df59a
- Parents:
- fb150d78 (diff), ffdd2b9 (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
-
uspace/app/tester/thread/thread1.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/tester/thread/thread1.c
rfb150d78 r46c20c8 35 35 #include <stdio.h> 36 36 #include <unistd.h> 37 #include <inttypes.h> 37 38 #include "../tester.h" 38 39 … … 50 51 } 51 52 52 c har *test_thread1(void)53 const char *test_thread1(void) 53 54 { 54 55 unsigned int i; 55 int total = 0;56 atomic_count_t total = 0; 56 57 57 58 atomic_set(&finish, 1); … … 74 75 atomic_set(&finish, 0); 75 76 while (atomic_get(&threads_finished) < total) { 76 TPRINTF("Threads left: %u\n", total - atomic_get(&threads_finished)); 77 TPRINTF("Threads left: %" PRIua "\n", 78 total - atomic_get(&threads_finished)); 77 79 sleep(1); 78 80 }
Note:
See TracChangeset
for help on using the changeset viewer.
