summaryrefslogtreecommitdiff
path: root/thread.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-06-09 15:02:46 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-06-09 15:02:46 +0000
commit87f025da25e2ce7f75f99cc71bd5396ecbf4ae1c (patch)
tree275d6c78369796c14d4917b41557395f92f27186 /thread.c
parent1fdbe0f437de59f87527818918b55d794a5fb92d (diff)
* 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
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c7
1 files changed, 7 insertions, 0 deletions
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
@@ -1359,6 +1360,12 @@ rb_threadptr_execute_interrupts(rb_thread_t *th)
}
void
+rb_thread_execute_interrupts(VALUE th)
+{
+ rb_threadptr_execute_interrupts_rec((rb_thread_t *)th, 0);
+}
+
+void
rb_gc_mark_threads(void)
{
rb_bug("deprecated function rb_gc_mark_threads is called");