mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* win32/win32.c (rb_w32_select_with_thread): rounding up the fraction of
tv_usec instead of rounding down. this change is an experiment to get rid of failures on vc10-x64 CI. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42793 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
61ce3f5744
commit
736f97b278
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
Tue Sep 3 11:23:57 2013 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* win32/win32.c (rb_w32_select_with_thread): rounding up the fraction of
|
||||
tv_usec instead of rounding down.
|
||||
this change is an experiment to get rid of failures on vc10-x64 CI.
|
||||
|
||||
Tue Sep 3 11:00:28 2013 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* win32/win32.c (do_select): constify timeout.
|
||||
|
|
|
@ -2960,7 +2960,7 @@ rb_w32_select_with_thread(int nfds, fd_set *rd, fd_set *wr, fd_set *ex,
|
|||
if (!rb_w32_time_subtract(&rest, &now)) break;
|
||||
if (compare(&rest, &wait) < 0) dowait = &rest;
|
||||
}
|
||||
Sleep(dowait->tv_sec * 1000 + dowait->tv_usec / 1000);
|
||||
Sleep(dowait->tv_sec * 1000 + (dowait->tv_usec + 999) / 1000);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue