summaryrefslogtreecommitdiff
path: root/thread.c
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-05-17 03:54:50 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-05-17 03:54:50 +0000
commit82983e834d2122c3a53c30b166b7eb708da4885f (patch)
tree84069c11ec3cd532d470e54b138fe1ddbf74763e /thread.c
parent1d7dc02647c13c8f3884fcaa80b7f11415205384 (diff)
* thread.c, thread_pthread.c: Moved pthread-specific preprocessor
hacks to thread_pthread.c git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35674 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/thread.c b/thread.c
index ccf350eee6..800159bee7 100644
--- a/thread.c
+++ b/thread.c
@@ -3303,9 +3303,7 @@ mutex_free(void *ptr)
if (err) rb_bug("%s", err);
}
native_mutex_destroy(&mutex->lock);
-#ifdef HAVE_PTHREAD_COND_INITIALIZE
native_cond_destroy(&mutex->cond);
-#endif
}
ruby_xfree(ptr);
}
@@ -3340,9 +3338,7 @@ mutex_alloc(VALUE klass)
obj = TypedData_Make_Struct(klass, rb_mutex_t, &mutex_data_type, mutex);
native_mutex_initialize(&mutex->lock);
-#ifdef HAVE_PTHREAD_COND_INITIALIZE
native_cond_initialize(&mutex->cond, RB_CONDATTR_CLOCK_MONOTONIC);
-#endif
return obj;
}