diff options
Diffstat (limited to 'cpukit/libstdthreads/thrd.c')
-rw-r--r-- | cpukit/libstdthreads/thrd.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/cpukit/libstdthreads/thrd.c b/cpukit/libstdthreads/thrd.c index 562e806226..c2e439f45c 100644 --- a/cpukit/libstdthreads/thrd.c +++ b/cpukit/libstdthreads/thrd.c @@ -26,15 +26,12 @@ * $FreeBSD r279318 2015-02-26T09:42:03Z$ */ -#include <sys/cdefs.h> -__FBSDID("$FreeBSD$"); - +#include <threads.h> #include <pthread.h> +#include <sched.h> #include <stdint.h> #include <stdlib.h> -#include "threads.h" - struct thrd_param { thrd_start_t func; void *arg; @@ -124,5 +121,5 @@ void thrd_yield(void) { - pthread_yield(); + sched_yield(); } |