commit cd1c6ae95f2d709136b687f4c40d11a446d4990c
Author: Ian Bell <IBell@...>
Date: Thu May 17 21:38:59 2012 +0100
[common] Added some other pthread calls to linux os abstraction layer
Signed-off-by: Ian Bell <IBell@...>
diff --git a/common/c_cpp/src/c/linux/port.h b/common/c_cpp/src/c/linux/port.h
index b40b4fa..a94ac7f 100644
--- a/common/c_cpp/src/c/linux/port.h
+++ b/common/c_cpp/src/c/linux/port.h
@@ -58,6 +58,7 @@ extern "C"
/* PTHREAD static locks are easy */
typedef pthread_mutex_t wthread_static_mutex_t;
#define WSTATIC_MUTEX_INITIALIZER PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
+#define WTHREAD_MUTEX_RECURSIVE PTHREAD_MUTEX_RECURSIVE
#define wthread_static_mutex_lock(x) pthread_mutex_lock((x))
#define wthread_static_mutex_unlock(x) pthread_mutex_unlock((x))
@@ -135,6 +136,7 @@ int wsem_timedwait (wsem_t* sem, unsigned int ts);
#define wthread_cond_signal pthread_cond_signal
#define wthread_cond_destroy pthread_cond_destroy
#define wthread_cond_wait pthread_cond_wait
+#define wthread_cond_broadcast pthread_cond_broadcast
#define wthread_spinlock_t pthread_spinlock_t
#define wthread_spin_init pthread_spin_init
@@ -147,6 +149,7 @@ int wsem_timedwait (wsem_t* sem, unsigned int ts);
#define wthread_mutexattr_t pthread_mutexattr_t
#define wthread_mutexattr_init pthread_mutexattr_init
+#define wthread_mutexattr_destroy pthread_mutexattr_destroy
#define wthread_mutexattr_settype pthread_mutexattr_settype
#define wGetCurrentThreadId pthread_self