summaryrefslogtreecommitdiffstats
path: root/thread_win32.c
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-01-18 15:15:40 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-01-18 15:15:40 +0000
commit4bfb24fe8f79ab1ddf71e9ba271e80fa4e66e303 (patch)
tree0587b227cd7d9c39b94ba745dbc4939002ca55f6 /thread_win32.c
parent215a7a8003bd292ad6bb23e141aa187919f1e9ed (diff)
downloadruby-4bfb24fe8f79ab1ddf71e9ba271e80fa4e66e303.tar.gz
ruby-4bfb24fe8f79ab1ddf71e9ba271e80fa4e66e303.tar.xz
ruby-4bfb24fe8f79ab1ddf71e9ba271e80fa4e66e303.zip
* thread_win32.c (w32_wait_events): shouldn't invoke interrupt handle
by timer_thread. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15116 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 7680a226e..ba40d7fe7 100644
--- a/thread_win32.c
+++ b/thread_win32.c
@@ -103,7 +103,7 @@ w32_wait_events(HANDLE *events, int count, DWORD timeout, rb_thread_t *th)
events, count, timeout, th);
if (th && (intr = th->native_thread_data.interrupt_event)) {
w32_reset_event(intr);
- if (th->interrupt_flag) {
+ if (RUBY_VM_INTERRUPTED(th)) {
w32_set_event(intr);
}