From 58b325366dbc5c84be12fb336ee5e68f208d9365 Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 12 Feb 2011 05:44:23 +0000 Subject: * thread.c (rb_thread_io_blocking_region): new function to run blocking region with GIL released, for fd. * thread.c (rb_thread_fd_close): implement. [ruby-core:35203] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30852 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- vm_core.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'vm_core.h') diff --git a/vm_core.h b/vm_core.h index 997ed38f13..257bdce668 100644 --- a/vm_core.h +++ b/vm_core.h @@ -260,6 +260,7 @@ enum ruby_special_exceptions { ruby_error_reenter, ruby_error_nomemory, ruby_error_sysstack, + ruby_error_closed_stream, ruby_special_error_count }; @@ -395,6 +396,8 @@ typedef struct rb_thread_struct { /* passing state */ int state; + int waiting_fd; + /* for rb_iterate */ const rb_block_t *passed_block; -- cgit v1.2.3