Changes in uspace/app/tester/thread/thread1.c [7e752b2:a405563] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/tester/thread/thread1.c
r7e752b2 ra405563 35 35 #include <stdio.h> 36 36 #include <unistd.h> 37 #include <inttypes.h>38 37 #include "../tester.h" 39 38 … … 51 50 } 52 51 53 c onst char *test_thread1(void)52 char *test_thread1(void) 54 53 { 55 54 unsigned int i; 56 atomic_count_t total = 0;55 int total = 0; 57 56 58 57 atomic_set(&finish, 1); … … 75 74 atomic_set(&finish, 0); 76 75 while (atomic_get(&threads_finished) < total) { 77 TPRINTF("Threads left: %" PRIua "\n", 78 total - atomic_get(&threads_finished)); 76 TPRINTF("Threads left: %u\n", total - atomic_get(&threads_finished)); 79 77 sleep(1); 80 78 }
Note:
See TracChangeset
for help on using the changeset viewer.