aboutsummaryrefslogtreecommitdiffstats
path: root/erts/lib_src
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2014-02-21 09:14:34 +0100
committerLukas Larsson <[email protected]>2014-02-24 15:16:08 +0100
commitad9d36c55fb6c77ce0a6163e009313deaa2d2bb0 (patch)
treedbfcb0002339ae2ab1e99e8a9f9b94f0bde7ccdb /erts/lib_src
parent6d010bd4ea3a5bb182cab4aff4436eb4f058c301 (diff)
downloadotp-ad9d36c55fb6c77ce0a6163e009313deaa2d2bb0.tar.gz
otp-ad9d36c55fb6c77ce0a6163e009313deaa2d2bb0.tar.bz2
otp-ad9d36c55fb6c77ce0a6163e009313deaa2d2bb0.zip
ose: Cleanup of mutex selection defines
Diffstat (limited to 'erts/lib_src')
-rw-r--r--erts/lib_src/common/ethr_mutex.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/erts/lib_src/common/ethr_mutex.c b/erts/lib_src/common/ethr_mutex.c
index 036914af7b..47f2f884af 100644
--- a/erts/lib_src/common/ethr_mutex.c
+++ b/erts/lib_src/common/ethr_mutex.c
@@ -1249,7 +1249,7 @@ ethr_cond_wait(ethr_cond *cnd, ethr_mutex *mtx)
return 0;
}
-#elif defined(ETHR_PTHREADS) && !defined(ETHR_DBG_WIN_MTX_WITH_PTHREADS)
+#elif (defined(ETHR_PTHREADS) || defined(ETHR_OSE_THREADS)) && !defined(ETHR_DBG_WIN_MTX_WITH_PTHREADS)
/* -- pthread mutex and condition variables -------------------------------- */
int
@@ -1428,6 +1428,8 @@ void LeaveCriticalSection(CRITICAL_SECTION *cs)
ETHR_FATAL_ERROR__(res);
}
+#else
+#error "No mutex implementation found"
#endif
#define ETHR_CND_WAIT__ ((ethr_sint32_t) 0x11dead11)