Skip to content
Snippets Groups Projects
Commit 2753c517 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

FreeBSD2 has POSIX_THREADS but is missing sched_yield()

parent 9f1812ce
No related branches found
No related tags found
No related merge requests found
......@@ -491,15 +491,17 @@ pthread_kill( pthread_t tid, int sig )
#if defined ( POSIX_THREADS )
#ifdef HAVE_SCHED_YIELD
#ifdef HAVE_SCHED_H
#include <sched.h>
#endif
#endif /* HAVE_SCHED_H */
/* POSIX Threads (final) does have a pthread_yield function */
void pthread_yield( void )
{
sched_yield();
}
#endif /* HAVE_SCHED_YIELD */
#endif /* posix threads */
#endif /* dce pthreads */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment