summaryrefslogtreecommitdiff
path: root/thread_pthread.c
diff options
context:
space:
mode:
authorkosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-11-05 02:46:41 +0000
committerkosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-11-05 02:46:41 +0000
commit9da62b63d9377299db5240e007ccf4a1644e4233 (patch)
tree43326069e5950fcb174c58ca8e98898439fd8d18 /thread_pthread.c
parent0ba4526d06e16ee496c581d7cf5a9fee801b3109 (diff)
* thread_pthread.c (native_thread_init, native_thread_destroy):
removed HAVE_PTHREAD_CONDATTR_INIT check because this silly #ifdef makes use-uninitialized-var issue and (2) native_cond_initialize() already have a right platform and caller don't need any additional care. [Bug #6825] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37474 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread_pthread.c')
-rw-r--r--thread_pthread.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/thread_pthread.c b/thread_pthread.c
index 68ca08f18f..49686afbed 100644
--- a/thread_pthread.c
+++ b/thread_pthread.c
@@ -466,18 +466,14 @@ Init_native_thread(void)
static void
native_thread_init(rb_thread_t *th)
{
-#ifdef HAVE_PTHREAD_CONDATTR_INIT
native_cond_initialize(&th->native_thread_data.sleep_cond, RB_CONDATTR_CLOCK_MONOTONIC);
-#endif
ruby_thread_set_native(th);
}
static void
native_thread_destroy(rb_thread_t *th)
{
-#ifdef HAVE_PTHREAD_CONDATTR_INIT
native_cond_destroy(&th->native_thread_data.sleep_cond);
-#endif
}
#ifndef USE_THREAD_CACHE