* thread_win32.c (w32_wait_events, w32_close_handle): suppress warnings.
see [ruby-core:31932]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29321 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d06f38c6b9
commit
060f18c0d9
@ -1,3 +1,8 @@
|
|||||||
|
Thu Sep 23 19:27:57 2010 wanabe <s.wanabe@gmail.com>
|
||||||
|
|
||||||
|
* thread_win32.c (w32_wait_events, w32_close_handle): suppress warnings.
|
||||||
|
see [ruby-core:31932].
|
||||||
|
|
||||||
Thu Sep 23 18:54:39 2010 wanabe <s.wanabe@gmail.com>
|
Thu Sep 23 18:54:39 2010 wanabe <s.wanabe@gmail.com>
|
||||||
|
|
||||||
* tool/config.sub: add mingw64.
|
* tool/config.sub: add mingw64.
|
||||||
|
@ -123,10 +123,10 @@ w32_wait_events(HANDLE *events, int count, DWORD timeout, rb_thread_t *th)
|
|||||||
ret = WaitForMultipleObjects(count, targets, FALSE, timeout);
|
ret = WaitForMultipleObjects(count, targets, FALSE, timeout);
|
||||||
thread_debug(" WaitForMultipleObjects end (ret: %lu)\n", ret);
|
thread_debug(" WaitForMultipleObjects end (ret: %lu)\n", ret);
|
||||||
|
|
||||||
if (ret == WAIT_OBJECT_0 + count - 1 && th) {
|
if (ret == (DWORD)(WAIT_OBJECT_0 + count - 1) && th) {
|
||||||
errno = EINTR;
|
errno = EINTR;
|
||||||
}
|
}
|
||||||
if (ret == -1 && THREAD_DEBUG) {
|
if (ret == WAIT_FAILED && THREAD_DEBUG) {
|
||||||
int i;
|
int i;
|
||||||
DWORD dmy;
|
DWORD dmy;
|
||||||
for (i = 0; i < count; i++) {
|
for (i = 0; i < count; i++) {
|
||||||
@ -167,7 +167,7 @@ w32_close_handle(HANDLE handle)
|
|||||||
static void
|
static void
|
||||||
w32_resume_thread(HANDLE handle)
|
w32_resume_thread(HANDLE handle)
|
||||||
{
|
{
|
||||||
if (ResumeThread(handle) == -1) {
|
if (ResumeThread(handle) == (DWORD)-1) {
|
||||||
w32_error("w32_resume_thread");
|
w32_error("w32_resume_thread");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user