From 961f557a7bb0bbaf1cd8271c58cd69cf98166ae2 Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 24 Feb 2007 09:41:41 +0000 Subject: * intern.h (rb_thread_blocking_region): add prototype. * thread.c (BLOCKING_REGION): restore previous UBF. * thread.c (rb_thread_blocking_region): default UBF to interrupt in system dependent way by RB_UBF_DFL. + ubf_select() on posix system + ubf_handle() on Win32 + none on cygwin git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11861 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- yarvcore.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'yarvcore.h') diff --git a/yarvcore.h b/yarvcore.h index b03e7f0fb..f755e2179 100644 --- a/yarvcore.h +++ b/yarvcore.h @@ -304,8 +304,6 @@ typedef struct rb_iseq_struct rb_iseq_t; #define GetVMPtr(obj, ptr) \ Data_Get_Struct(obj, rb_vm_t, ptr) -struct rb_thread_struct; - typedef struct rb_vm_struct { VALUE self; @@ -379,12 +377,10 @@ struct rb_vm_tag { struct rb_vm_tag *prev; }; -typedef void rb_unblock_function_t(struct rb_thread_struct *); - #define RUBY_VM_VALUE_CACHE_SIZE 0x1000 #define USE_VALUE_CACHE 1 -typedef struct rb_thread_struct +struct rb_thread_struct { VALUE self; rb_vm_t *vm; @@ -459,7 +455,7 @@ typedef struct rb_thread_struct /* misc */ int method_missing_reason; int abort_on_exception; -} rb_thread_t; +}; /** node -> yarv instruction sequence object */ VALUE rb_iseq_compile(VALUE self, NODE *node); -- cgit