diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-31 07:44:24 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-31 07:44:24 +0000 |
commit | a7a4f63d9b6e6af365a7add9351713336d95bb64 (patch) | |
tree | 09e15151427ce2b817813bb7bde1f0d9cf1a2c75 /io.c | |
parent | fcf44c1d51a88a959278cd765f6fa6de25c19b57 (diff) | |
download | ruby-a7a4f63d9b6e6af365a7add9351713336d95bb64.tar.gz ruby-a7a4f63d9b6e6af365a7add9351713336d95bb64.tar.xz ruby-a7a4f63d9b6e6af365a7add9351713336d95bb64.zip |
* include/ruby/intern.h: rename RB_UBF_DFL to
RUBY_UBF_IO and RUBY_UBF_PROCESS.
Because there is no default (universal) unblocking function.
* ext/socket/socket.c, file.c, io.c, process.c, thread.c: ditto.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18985 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -524,7 +524,7 @@ rb_read_internal(int fd, void *buf, size_t count) iis.buf = buf; iis.capa = count; - return rb_thread_blocking_region(internal_read_func, &iis, RB_UBF_DFL, 0); + return rb_thread_blocking_region(internal_read_func, &iis, RUBY_UBF_IO, 0); } static int @@ -535,7 +535,7 @@ rb_write_internal(int fd, void *buf, size_t count) iis.buf = buf; iis.capa = count; - return rb_thread_blocking_region(internal_write_func, &iis, RB_UBF_DFL, 0); + return rb_thread_blocking_region(internal_write_func, &iis, RUBY_UBF_IO, 0); } static int @@ -3925,7 +3925,7 @@ rb_sysopen_internal(char *fname, int flags, mode_t mode) data.fname = fname; data.flag = flags; data.mode = mode; - return (int)rb_thread_blocking_region(sysopen_func, &data, RB_UBF_DFL, 0); + return (int)rb_thread_blocking_region(sysopen_func, &data, RUBY_UBF_IO, 0); } static int @@ -7372,7 +7372,7 @@ copy_stream_body(VALUE arg) rb_fd_set(src_fd, &stp->fds); rb_fd_set(dst_fd, &stp->fds); - return rb_thread_blocking_region(copy_stream_func, (void*)stp, RB_UBF_DFL, 0); + return rb_thread_blocking_region(copy_stream_func, (void*)stp, RUBY_UBF_IO, 0); } static VALUE |