From 87f025da25e2ce7f75f99cc71bd5396ecbf4ae1c Mon Sep 17 00:00:00 2001 From: akr Date: Thu, 9 Jun 2011 15:02:46 +0000 Subject: * io.c: fix IO.copy_stream interrupt handling. based on the patch by Eric Wong. [ruby-core:36156] * vm_core.h (rb_thread_call_with_gvl): don't declare here. * thread.c: include internal.h. (rb_thread_execute_interrupts): new function. * internal.h (rb_thread_execute_interrupts): declared. (rb_thread_call_with_gvl): declared. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31971 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- thread.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'thread.c') diff --git a/thread.c b/thread.c index 34f3ad8629..433e7be4fb 100644 --- a/thread.c +++ b/thread.c @@ -46,6 +46,7 @@ #include "eval_intern.h" #include "gc.h" +#include "internal.h" #include "ruby/io.h" #ifndef USE_NATIVE_THREAD_PRIORITY @@ -1358,6 +1359,12 @@ rb_threadptr_execute_interrupts(rb_thread_t *th) rb_threadptr_execute_interrupts_rec(th, 0); } +void +rb_thread_execute_interrupts(VALUE th) +{ + rb_threadptr_execute_interrupts_rec((rb_thread_t *)th, 0); +} + void rb_gc_mark_threads(void) { -- cgit v1.2.3