projects
/
cacao.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
* src/threads/posix/thread-posix.hpp: Removed public semaphore interface.
[cacao.git]
/
src
/
threads
/
posix
/
thread-posix.cpp
diff --git
a/src/threads/posix/thread-posix.cpp
b/src/threads/posix/thread-posix.cpp
index 6a0e54adce134c6c7828b12e4a4797b93288f34e..031823ee561e9a7a6a3c2b3c62b4b138b43a3a50 100644
(file)
--- 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 <mach/mach.h>
+
+typedef struct {
+ Mutex* mutex;
+ Condition* cond;
+ int value;
+} sem_t;
+
+#else
# include <semaphore.h>
#endif