Reaplce pthrea_yield with sched_yield

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@10887 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
fedor 2001-09-12 22:34:44 +00:00
parent fc0051287f
commit 8a84d71b8e
3 changed files with 12 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2001-09-12 Adam Fedor <fedor@gnu.org>
* Source/thr-pthread.m (objc_yield): Replace pthread_yield with
sched_yield.
2001-09-11 Adam Fedor <fedor@gnu.org>
* configure.in: Make sure to subst HAVE_PTHREAD_H into config.mak

View file

@ -30,6 +30,8 @@
#include <objc/objc-class.h>
#include <stddef.h>
#include <ctype.h>
#include <stdio.h>
typedef union {
char *arg_ptr;

View file

@ -238,7 +238,12 @@ objc_thread_get_priority(void)
void
objc_thread_yield(void)
{
#if 0
/* Not defined in darwin? */
pthread_yield(NULL);
#else
sched_yield();
#endif
}
/* Terminate the current thread. */