aboutsummaryrefslogtreecommitdiffstats
path: root/thread_pthread.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-07-30 15:21:01 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-07-30 15:21:01 +0000
commitcb2694511f98a54b2462ca28355bb4f95aec19a0 (patch)
tree968a527bcbe902ff520f0855f8226412c16b9079 /thread_pthread.c
parent7ef37ab33b91c3e653a31cdd8217ba1aed407ede (diff)
downloadruby-cb2694511f98a54b2462ca28355bb4f95aec19a0.tar.gz
thread_pthread.c: revert r64123
* thread_pthread.c (USE_NATIVE_SLEEP_COND): revised wrongly removed line with the ifndef guard. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64131 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread_pthread.c')
-rw-r--r--thread_pthread.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/thread_pthread.c b/thread_pthread.c
index db940a7be5..d09569ec7d 100644
--- a/thread_pthread.c
+++ b/thread_pthread.c
@@ -1565,6 +1565,10 @@ rb_thread_create_mjit_thread(void (*worker_func)(void))
return ret;
}
+#ifndef USE_NATIVE_SLEEP_COND
+#define USE_NATIVE_SLEEP_COND (1)
+#endif
+
#if USE_NATIVE_SLEEP_COND
rb_nativethread_cond_t *
rb_sleep_cond_get(const rb_execution_context_t *ec)