diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-19 15:19:38 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-19 15:19:38 +0000 |
commit | 0d2988335d1741cf981d5580af2bb9161f972bb5 (patch) | |
tree | fe27bc8cf8fda308dbc17a9cc8e5faa0704ff4a2 /thread_win32.c | |
parent | ae9232275111ab46f74143828f8d5b1232027ff3 (diff) | |
download | ruby-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.c | 2 |
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(); } |