зеркало из https://github.com/github/ruby.git
* thread_pthread.c (native_sleep): fix 1000times calculation error.
this is a regression since r31457. [Bug #4808] [ruby-dev:43606] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31893 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
dcc1f64cb0
Коммит
859da83455
|
@ -1,3 +1,8 @@
|
|||
Wed Jun 1 21:57:08 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
|
||||
|
||||
* thread_pthread.c (native_sleep): fix 1000times calculation error.
|
||||
this is a regression since r31457. [Bug #4808] [ruby-dev:43606]
|
||||
|
||||
Wed Jun 1 17:19:16 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
|
||||
|
||||
* thread_pthread.c: remove unused macro.
|
||||
|
|
|
@ -836,7 +836,7 @@ native_sleep(rb_thread_t *th, struct timeval *timeout_tv)
|
|||
struct timespec timeout_rel;
|
||||
|
||||
timeout_rel.tv_sec = timeout_tv->tv_sec;
|
||||
timeout_rel.tv_nsec = timeout_tv->tv_usec;
|
||||
timeout_rel.tv_nsec = timeout_tv->tv_usec * 1000;
|
||||
|
||||
timeout = native_cond_timeout(cond, timeout_rel);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче