mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
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:
parent
dff88a67a0
commit
fd024cf36b
3 changed files with 8 additions and 2 deletions
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue