summaryrefslogtreecommitdiff
path: root/thread_win32.c
diff options
context:
space:
mode:
Diffstat (limited to 'thread_win32.c')
-rw-r--r--thread_win32.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/thread_win32.c b/thread_win32.c
index 7c31a3f70e..68d993a0b2 100644
--- a/thread_win32.c
+++ b/thread_win32.c
@@ -204,9 +204,8 @@ rb_w32_Sleep(unsigned long msec)
}
static void
-native_sleep(rb_thread_t *th, struct timeval *tv, int deadlockable)
+native_sleep(rb_thread_t *th, struct timeval *tv)
{
- int prev_status = th->status;
DWORD msec;
if (tv) {
@@ -216,15 +215,6 @@ native_sleep(rb_thread_t *th, struct timeval *tv, int deadlockable)
msec = INFINITE;
}
- if (!tv && deadlockable) {
- th->status = THREAD_STOPPED_FOREVER;
- th->vm->sleeper++;
- rb_check_deadlock(th->vm);
- }
- else {
- th->status = THREAD_STOPPED;
- }
-
GVL_UNLOCK_BEGIN();
{
DWORD ret;
@@ -249,9 +239,6 @@ native_sleep(rb_thread_t *th, struct timeval *tv, int deadlockable)
native_mutex_unlock(&th->interrupt_lock);
}
GVL_UNLOCK_END();
- th->status = prev_status;
- if (!tv && deadlockable) th->vm->sleeper--;
- RUBY_VM_CHECK_INTS();
}
static int