PR157: ARM memory barrier
[cacao.git] / src / threads / posix / thread-posix.hpp
index 9257ce8131db2e1bedea4e3d865da2c2092e2795..e24f6cc2ee8fee6c75b1f7c1e6f61fb8a981211e 100644 (file)
@@ -214,19 +214,6 @@ inline static threadobject* thread_get_current(void);
 #include "vm/jit/intrp/intrp.h"
 #endif
 
-#if defined(__DARWIN__)
-# include <mach/mach.h>
-
-typedef struct {
-       Mutex* mutex;
-       Condition* cond;
-       int value;
-} sem_t;
-
-#else
-# include <semaphore.h>
-#endif
-
 
 // FIXME
 #ifdef __cplusplus
@@ -269,7 +256,6 @@ inline static void thread_set_current(threadobject* t)
        result = pthread_setspecific(thread_current_key, t);
 
        if (result != 0)
-#warning Use below method instead!
                //os::abort_errnum(result, "thread_set_current: pthread_setspecific failed");
                vm_abort("thread_set_current: pthread_setspecific failed");
 #endif
@@ -289,10 +275,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);