diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1998-06-24 04:38:10 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1998-06-24 04:38:10 +0000 |
commit | f61858b1164eab2afd67c3814b79d50a386a92c0 (patch) | |
tree | 32c889c6af8c94b35fa34616d0f0ec559826922c /file.c | |
parent | 6a3c97169c8a671f5feda7eba2b2a7529252daf3 (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 'file.c')
-rw-r--r-- | file.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1376,10 +1376,10 @@ file_truncate(obj, len) #if defined(THREAD) && defined(EWOULDBLOCK) static int -thread_flock(fd, op) +thred_flock(fd, op) int fd, op; { - if (thread_alone() || (op & LOCK_NB)) { + if (thred_alone() || (op & LOCK_NB)) { return flock(fd, op); } op |= LOCK_NB; @@ -1387,7 +1387,7 @@ thread_flock(fd, op) switch (errno) { case EINTR: /* can be happen? */ case EWOULDBLOCK: - thread_schedule(); /* busy wait */ + thred_schedule(); /* busy wait */ break; default: return -1; @@ -1395,7 +1395,7 @@ thread_flock(fd, op) } return 0; } -#define flock thread_flock +#define flock thred_flock #endif static VALUE |