From bcfc22b10e30771e692f7716a1fec7577373963e Mon Sep 17 00:00:00 2001 From: kosaki Date: Mon, 13 Jun 2011 14:14:53 +0000 Subject: * thread_pthread.c: rewrite GVL completely. * thread_win32.c: ditto. * thread_pthread.h: ditto. * vm_core.h: ditto. * thread.c: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32064 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- thread_win32.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'thread_win32.c') diff --git a/thread_win32.c b/thread_win32.c index c0a026c7b6..da335e88ff 100644 --- a/thread_win32.c +++ b/thread_win32.c @@ -13,7 +13,7 @@ #include -#define WIN32_WAIT_TIMEOUT 10 /* 10 ms */ +#define TIME_QUANTUM_USEC (100 * 1000) #define RB_CONDATTR_CLOCK_MONOTONIC 1 /* no effect */ #undef Sleep @@ -680,7 +680,7 @@ static unsigned long _stdcall timer_thread_func(void *dummy) { thread_debug("timer_thread\n"); - while (WaitForSingleObject(timer_thread_lock, WIN32_WAIT_TIMEOUT) == + while (WaitForSingleObject(timer_thread_lock, TIME_QUANTUM_USEC/1000) == WAIT_TIMEOUT) { timer_thread_function(dummy); } -- cgit v1.2.3