summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1998-06-24 04:38:10 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1998-06-24 04:38:10 +0000
commitf61858b1164eab2afd67c3814b79d50a386a92c0 (patch)
tree32c889c6af8c94b35fa34616d0f0ec559826922c /io.c
parent6a3c97169c8a671f5feda7eba2b2a7529252daf3 (diff)
thread->thred
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/v1_1r@250 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r--io.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/io.c b/io.c
index 0643f21813..0cf2593db5 100644
--- a/io.c
+++ b/io.c
@@ -109,7 +109,7 @@ extern int ReadDataPending();
# define READ_CHECK(fp) 0
#else
# define READ_CHECK(fp) do {\
- if (!READ_DATA_PENDING(fp)) thread_wait_fd(fileno(fp));\
+ if (!READ_DATA_PENDING(fp)) thred_wait_fd(fileno(fp));\
} while(0)
#endif
@@ -881,7 +881,7 @@ io_syswrite(io, str)
f = GetWriteFile(fptr);
#ifdef THREAD
- thread_fd_writable(fileno(f));
+ thred_fd_writable(fileno(f));
#endif
n = write(fileno(f), RSTRING(str)->ptr, RSTRING(str)->len);
@@ -905,7 +905,7 @@ io_sysread(io, len)
str = str_new(0, ilen);
#ifdef THREAD
- thread_wait_fd(fileno(fptr->f));
+ thred_wait_fd(fileno(fptr->f));
#endif
TRAP_BEG;
n = read(fileno(fptr->f), RSTRING(str)->ptr, RSTRING(str)->len);
@@ -1184,7 +1184,7 @@ pipe_open(pname, mode)
case -1: /* fork failed */
if (errno == EAGAIN) {
#ifdef THREAD
- thread_sleep(1);
+ thred_sleep(1);
#else
sleep(1);
#endif
@@ -2055,7 +2055,7 @@ f_select(argc, argv, obj)
max++;
#ifdef THREAD
- n = thread_select(max, rp, wp, ep, tp);
+ n = thred_select(max, rp, wp, ep, tp);
if (n < 0) {
rb_sys_fail(0);
}