mirror of
https://github.com/ruby/ruby.git
synced 2025-08-19 08:49:41 +02:00
* 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
This commit is contained in:
parent
1fdbe0f437
commit
87f025da25
6 changed files with 137 additions and 23 deletions
7
thread.c
7
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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue