mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-26 02:01:03 +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
|
@ -1,3 +1,8 @@
|
||||||
|
2006-03-17 Andrew Sveikauskas <asveikau@mail.rochester.edu>
|
||||||
|
|
||||||
|
* Source/thr-mach.h: include objc/objc-api.h
|
||||||
|
* Source/thr-pthread.m: use pthread_yield() except for apple
|
||||||
|
|
||||||
2006-03-13 Adam Fedor <fedor@gnu.org>
|
2006-03-13 Adam Fedor <fedor@gnu.org>
|
||||||
|
|
||||||
* Version 1.12.0
|
* Version 1.12.0
|
||||||
|
|
|
@ -39,6 +39,7 @@ Boston, MA 02110-1301, USA. */
|
||||||
#define __thread_INCLUDE_GNU
|
#define __thread_INCLUDE_GNU
|
||||||
|
|
||||||
#include <objc/objc.h>
|
#include <objc/objc.h>
|
||||||
|
#include <objc/objc-api.h>
|
||||||
|
|
||||||
/*************************************************************************
|
/*************************************************************************
|
||||||
* Universal static variables:
|
* Universal static variables:
|
||||||
|
|
|
@ -238,9 +238,9 @@ objc_thread_get_priority(void)
|
||||||
void
|
void
|
||||||
objc_thread_yield(void)
|
objc_thread_yield(void)
|
||||||
{
|
{
|
||||||
#if 0
|
#if !defined(__APPLE__)
|
||||||
/* Not defined in darwin? */
|
/* Not defined in darwin? */
|
||||||
pthread_yield(NULL);
|
pthread_yield();
|
||||||
#else
|
#else
|
||||||
sched_yield();
|
sched_yield();
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue