mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
8d4f4e25e5
commit
af94c81302
3 changed files with 8 additions and 4 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue