aboutsummaryrefslogtreecommitdiffstats
path: root/thread_pthread.h
diff options
context:
space:
mode:
Diffstat (limited to 'thread_pthread.h')
-rw-r--r--thread_pthread.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/thread_pthread.h b/thread_pthread.h
index 6890f8ab43..24a4af4053 100644
--- a/thread_pthread.h
+++ b/thread_pthread.h
@@ -15,6 +15,9 @@
#include <pthread_np.h>
#endif
+#define RB_NATIVETHREAD_LOCK_INIT PTHREAD_MUTEX_INITIALIZER
+#define RB_NATIVETHREAD_COND_INIT { PTHREAD_COND_INITIALIZER, }
+
typedef struct rb_thread_cond_struct {
pthread_cond_t cond;
#ifdef HAVE_CLOCKID_T