From fd024cf36bf94a3c734810b51e6b1c1134f3d5ad Mon Sep 17 00:00:00 2001 From: rfm Date: Fri, 17 Mar 2006 09:15:25 +0000 Subject: [PATCH] Minor OpenBSD thread fixes git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@22670 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 5 +++++ Source/thr-mach.h | 1 + Source/thr-pthread.m | 4 ++-- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 19eadab4b..e275cfe79 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-03-17 Andrew Sveikauskas + + * Source/thr-mach.h: include objc/objc-api.h + * Source/thr-pthread.m: use pthread_yield() except for apple + 2006-03-13 Adam Fedor * Version 1.12.0 diff --git a/Source/thr-mach.h b/Source/thr-mach.h index 917f08b98..3f0eb8ae3 100644 --- a/Source/thr-mach.h +++ b/Source/thr-mach.h @@ -39,6 +39,7 @@ Boston, MA 02110-1301, USA. */ #define __thread_INCLUDE_GNU #include +#include /************************************************************************* * Universal static variables: diff --git a/Source/thr-pthread.m b/Source/thr-pthread.m index 31f9117c9..84c5cfd42 100644 --- a/Source/thr-pthread.m +++ b/Source/thr-pthread.m @@ -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