summaryrefslogtreecommitdiff
path: root/thread_win32.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-06-19 15:19:38 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-06-19 15:19:38 +0000
commitaf94c81302cd778d5e62ddae714e52c891f69d38 (patch)
treefe27bc8cf8fda308dbc17a9cc8e5faa0704ff4a2 /thread_win32.c
parent8d4f4e25e5d4bdaf70e84e1615e6db227c1a96b4 (diff)
* thread_win32.c (native_sleep): fix to decrement sleeper count.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17441 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread_win32.c')
-rw-r--r--thread_win32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/thread_win32.c b/thread_win32.c
index fb9b680..993f5f2 100644
--- a/thread_win32.c
+++ b/thread_win32.c
@@ -246,7 +246,7 @@ native_sleep(rb_thread_t *th, struct timeval *tv, int deadlockable)
}
GVL_UNLOCK_END();
th->status = prev_status;
- if (!tv && deadlockable) th->vm->sleeper++;
+ if (!tv && deadlockable) th->vm->sleeper--;
RUBY_VM_CHECK_INTS();
}