From: Michael Starzinger Date: Mon, 2 Nov 2009 12:23:42 +0000 (+0100) Subject: * src/threads/posix/thread-posix.hpp: Removed public semaphore interface. X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=commitdiff_plain;ds=sidebyside;h=ac8c250e6d413143404f58ae3e00c575f389220a;p=cacao.git * src/threads/posix/thread-posix.hpp: Removed public semaphore interface. * src/threads/posix/thread-posix.cpp: Moved includes here from header. --- diff --git a/src/threads/posix/thread-posix.cpp b/src/threads/posix/thread-posix.cpp index 6a0e54adc..031823ee5 100644 --- a/src/threads/posix/thread-posix.cpp +++ b/src/threads/posix/thread-posix.cpp @@ -80,7 +80,16 @@ #include "vm/jit/asmpart.h" -#if !defined(__DARWIN__) +#if defined(__DARWIN__) +# include + +typedef struct { + Mutex* mutex; + Condition* cond; + int value; +} sem_t; + +#else # include #endif diff --git a/src/threads/posix/thread-posix.hpp b/src/threads/posix/thread-posix.hpp index 9257ce813..32503c4da 100644 --- a/src/threads/posix/thread-posix.hpp +++ b/src/threads/posix/thread-posix.hpp @@ -214,19 +214,6 @@ inline static threadobject* thread_get_current(void); #include "vm/jit/intrp/intrp.h" #endif -#if defined(__DARWIN__) -# include - -typedef struct { - Mutex* mutex; - Condition* cond; - int value; -} sem_t; - -#else -# include -#endif - // FIXME #ifdef __cplusplus @@ -289,10 +276,6 @@ inline static void threads_set_current_stackframeinfo(struct stackframeinfo_t* s /* functions ******************************************************************/ -void threads_sem_init(sem_t *sem, bool shared, int value); -void threads_sem_wait(sem_t *sem); -void threads_sem_post(sem_t *sem); - void threads_start_thread(threadobject *thread, functionptr function); void threads_set_thread_priority(pthread_t tid, int priority);