summaryrefslogtreecommitdiff
path: root/vm_core.h
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-02-12 05:44:23 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-02-12 05:44:23 +0000
commit58b325366dbc5c84be12fb336ee5e68f208d9365 (patch)
treee76cc28208f340b4fa1f1a126f35e5953f56e27a /vm_core.h
parentdda8de065c1c7691ec8627d3024a61f324bc9f73 (diff)
* 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
Diffstat (limited to 'vm_core.h')
-rw-r--r--vm_core.h3
1 files changed, 3 insertions, 0 deletions
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;