1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
nobu 2008-04-10 01:27:25 +00:00
parent 69352c0d4d
commit eb18a827fb
3 changed files with 8 additions and 4 deletions

View file

@ -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();