Changeset 582a0b8 in mainline for uspace/app/tester/thread/thread1.c
- Timestamp:
- 2017-05-08T19:20:39Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d2c8533
- Parents:
- 73db198
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/tester/thread/thread1.c
r73db198 r582a0b8 34 34 #include <thread.h> 35 35 #include <stdio.h> 36 #include < unistd.h>36 #include <stddef.h> 37 37 #include <inttypes.h> 38 38 #include "../tester.h" … … 46 46 47 47 while (atomic_get(&finish)) 48 usleep(100000);48 thread_usleep(100000); 49 49 50 50 atomic_inc(&threads_finished); … … 70 70 71 71 TPRINTF("\nRunning threads for %u seconds...", DELAY); 72 sleep(DELAY);72 thread_sleep(DELAY); 73 73 TPRINTF("\n"); 74 74 … … 77 77 TPRINTF("Threads left: %" PRIua "\n", 78 78 total - atomic_get(&threads_finished)); 79 sleep(1);79 thread_sleep(1); 80 80 } 81 81
Note:
See TracChangeset
for help on using the changeset viewer.