diff options
author | kosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-05-06 16:47:38 +0000 |
---|---|---|
committer | kosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-05-06 16:47:38 +0000 |
commit | a1cfaf4b1f199d078f5168dcbc37a83250666ed4 (patch) | |
tree | 2884f9788c15841aa4d7973c9c98832d3a22c9df /thread.c | |
parent | 4a9883e92f856bf7db773e0ddc72f17a8662b75a (diff) |
* thread_pthread.h (rb_thread_cond_t): add clockid field. it's
no longer an alias of pthread_cond_t.
* thread_pthread.c: adapt new rb_thread_cond_t type.
* thread.c (mutex_alloc): ditto.
* thread_win32.c (native_cond_initialize): ditto.
* configure.in: add check for pthread_cond_attr_setclock() and
clockid_t type.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31451 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread.c')
-rw-r--r-- | thread.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -3336,7 +3336,7 @@ mutex_alloc(VALUE klass) obj = TypedData_Make_Struct(klass, mutex_t, &mutex_data_type, mutex); native_mutex_initialize(&mutex->lock); - native_cond_initialize(&mutex->cond); + native_cond_initialize(&mutex->cond, 0); return obj; } |