From 4ccd99734480f7ac4524e6c1e6fe51839dbb4c76 Mon Sep 17 00:00:00 2001 From: ko1 Date: Tue, 23 Sep 2008 08:17:17 +0000 Subject: * thread.c, include/ruby/intern.h (rb_thread_interrupted): added. * io.c: use VALUE of thead instead of rb_tread_t to check interrupts. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19477 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- include/ruby/intern.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/ruby') diff --git a/include/ruby/intern.h b/include/ruby/intern.h index 105ca62bd..5f6882d56 100644 --- a/include/ruby/intern.h +++ b/include/ruby/intern.h @@ -659,6 +659,7 @@ VALUE rb_struct_define_without_accessor(const char *, VALUE, rb_alloc_func_t, .. typedef void rb_unblock_function_t(void *); typedef VALUE rb_blocking_function_t(void *); void rb_thread_check_ints(void); +int rb_thread_interrupted(VALUE thval); VALUE rb_thread_blocking_region(rb_blocking_function_t *func, void *data1, rb_unblock_function_t *ubf, void *data2); #define RUBY_UBF_IO ((rb_unblock_function_t *)-1) -- cgit