summaryrefslogtreecommitdiff
path: root/thread_pthread.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-04-10 01:27:25 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-04-10 01:27:25 +0000
commiteb18a827fb0498888a6666cd72d4a53a41cc8ca9 (patch)
treeb4d528035b469b5ddffb98145c920b65795854e3 /thread_pthread.c
parent69352c0d4d98a16f82ae388297ecfff940747ae2 (diff)
downloadruby-eb18a827fb0498888a6666cd72d4a53a41cc8ca9.tar.gz
* thread_pthread.c (native_sleep): sleep_cond is initialized at
creation. [ruby-Patches-19361]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15945 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread_pthread.c')
-rw-r--r--thread_pthread.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/thread_pthread.c b/thread_pthread.c
index 62bddb722f..b26148bf40 100644
--- a/thread_pthread.c
+++ b/thread_pthread.c
@@ -416,7 +416,6 @@ native_sleep(rb_thread_t *th, struct timeval *tv)
}
th->status = THREAD_STOPPED;
- pthread_cond_init(&th->native_thread_data.sleep_cond, 0);
thread_debug("native_sleep %ld\n", tv ? tv->tv_sec : -1);
GVL_UNLOCK_BEGIN();