From f61858b1164eab2afd67c3814b79d50a386a92c0 Mon Sep 17 00:00:00 2001 From: matz Date: Wed, 24 Jun 1998 04:38:10 +0000 Subject: thread->thred git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/v1_1r@250 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- io.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'io.c') 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); } -- cgit v1.2.3