summaryrefslogtreecommitdiff
path: root/thread_win32.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-11-28 05:55:49 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-11-28 05:55:49 +0000
commitf0445d156caf032135777f4c3974a4adc945470e (patch)
tree9160ba4da7d62b55f53543b6e3e7ad0c181096fa /thread_win32.c
parent925da00b022b05b5bf70e5d757b9149493e6946c (diff)
* thread_win32.c (gvl_release, gvl_init): suppress warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29959 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread_win32.c')
-rw-r--r--thread_win32.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/thread_win32.c b/thread_win32.c
index 51f7429..26516e4 100644
--- a/thread_win32.c
+++ b/thread_win32.c
@@ -32,6 +32,7 @@ static void native_cond_broadcast(rb_thread_cond_t *cond);
static void native_cond_wait(rb_thread_cond_t *cond, rb_thread_lock_t *mutex);
static void native_cond_initialize(rb_thread_cond_t *cond);
static void native_cond_destroy(rb_thread_cond_t *cond);
+static int w32_wait_events(HANDLE *events, int count, DWORD timeout, rb_thread_t *th);
static void
w32_error(const char *func)
@@ -79,7 +80,7 @@ w32_mutex_lock(HANDLE lock)
rb_bug("win32_mutex_lock: WAIT_ABANDONED");
break;
default:
- rb_bug("win32_mutex_lock: unknown result (%d)", result);
+ rb_bug("win32_mutex_lock: unknown result (%ld)", result);
break;
}
}
@@ -120,7 +121,6 @@ gvl_atfork(rb_vm_t *vm)
static void
gvl_init(rb_vm_t *vm)
{
- int r;
if (GVL_DEBUG) fprintf(stderr, "gvl init\n");
vm->gvl.lock = w32_mutex_create();
}