summaryrefslogtreecommitdiff
path: root/thread_win32.c
diff options
context:
space:
mode:
Diffstat (limited to 'thread_win32.c')
-rw-r--r--thread_win32.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/thread_win32.c b/thread_win32.c
index bb330e9..530f6e7 100644
--- a/thread_win32.c
+++ b/thread_win32.c
@@ -271,10 +271,10 @@ rb_w32_Sleep(unsigned long msec)
}
static void
-native_sleep(rb_thread_t *th, struct timeval *tv)
+native_sleep(rb_thread_t *th, struct timespec *ts)
{
- const volatile DWORD msec = (tv) ?
- (DWORD)(tv->tv_sec * 1000 + tv->tv_usec / 1000) : INFINITE;
+ const volatile DWORD msec = (ts) ?
+ (DWORD)(ts->tv_sec * 1000 + ts->tv_nsec / 1000000) : INFINITE;
GVL_UNLOCK_BEGIN();
{