summaryrefslogtreecommitdiffstats
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
commit0d2988335d1741cf981d5580af2bb9161f972bb5 (patch)
treefe27bc8cf8fda308dbc17a9cc8e5faa0704ff4a2 /thread_win32.c
parentae9232275111ab46f74143828f8d5b1232027ff3 (diff)
downloadruby-0d2988335d1741cf981d5580af2bb9161f972bb5.tar.gz
ruby-0d2988335d1741cf981d5580af2bb9161f972bb5.tar.xz
ruby-0d2988335d1741cf981d5580af2bb9161f972bb5.zip
* thread_win32.c (native_sleep): fix to decrement sleeper count.
git-svn-id: http://svn.ruby-lang.org/repos/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 fb9b680b0..993f5f271 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();
}