Minor OpenBSD thread fixes

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@22670 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2006-03-17 09:15:25 +00:00
parent dff88a67a0
commit fd024cf36b
3 changed files with 8 additions and 2 deletions

View file

@ -39,6 +39,7 @@ Boston, MA 02110-1301, USA. */
#define __thread_INCLUDE_GNU
#include <objc/objc.h>
#include <objc/objc-api.h>
/*************************************************************************
* Universal static variables:

View file

@ -238,9 +238,9 @@ objc_thread_get_priority(void)
void
objc_thread_yield(void)
{
#if 0
#if !defined(__APPLE__)
/* Not defined in darwin? */
pthread_yield(NULL);
pthread_yield();
#else
sched_yield();
#endif