diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-06-09 15:02:46 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-06-09 15:02:46 +0000 |
commit | 87f025da25e2ce7f75f99cc71bd5396ecbf4ae1c (patch) | |
tree | 275d6c78369796c14d4917b41557395f92f27186 /internal.h | |
parent | 1fdbe0f437de59f87527818918b55d794a5fb92d (diff) | |
download | ruby-87f025da25e2ce7f75f99cc71bd5396ecbf4ae1c.tar.gz |
* 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 'internal.h')
-rw-r--r-- | internal.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/internal.h b/internal.h index 2ef1fc4337..bf1fcd5bb3 100644 --- a/internal.h +++ b/internal.h @@ -30,6 +30,9 @@ VALUE rb_big_uminus(VALUE x); VALUE rb_obj_is_thread(VALUE obj); VALUE rb_obj_is_mutex(VALUE obj); +void rb_thread_execute_interrupts(VALUE th); +void *rb_thread_call_with_gvl(void *(*func)(void *), void *data1); + #if defined(__cplusplus) #if 0 { /* satisfy cc-mode */ |