mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-25 09:41:15 +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>
|
||||
|
||||
* Version 1.12.0
|
||||
|
|
|
@ -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…
Reference in a new issue