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 /process.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 'process.c')
-rw-r--r-- | process.c | 22 |
1 files changed, 11 insertions, 11 deletions
@@ -81,7 +81,7 @@ rb_waitpid(pid, flags, st) int result; #if defined(THREAD) && (defined(HAVE_WAITPID) || defined(HAVE_WAIT4)) int oflags = flags; - if (!thread_alone()) { /* there're other threads to run */ + if (!thred_alone()) { /* there're other threads to run */ flags |= WNOHANG; } #endif @@ -92,7 +92,7 @@ rb_waitpid(pid, flags, st) if (result < 0) { if (errno == EINTR) { #ifdef THREAD - thread_schedule(); + thred_schedule(); #endif goto retry; } @@ -101,8 +101,8 @@ rb_waitpid(pid, flags, st) #ifdef THREAD if (result == 0) { if (oflags & WNOHANG) return 0; - thread_schedule(); - if (thread_alone()) flags = oflags; + thred_schedule(); + if (thred_alone()) flags = oflags; goto retry; } #endif @@ -120,8 +120,8 @@ rb_waitpid(pid, flags, st) #ifdef THREAD if (result == 0) { if (oflags & WNOHANG) return 0; - thread_schedule(); - if (thread_alone()) flags = oflags; + thred_schedule(); + if (thred_alone()) flags = oflags; goto retry; } #endif @@ -141,7 +141,7 @@ rb_waitpid(pid, flags, st) if (result < 0) { if (errno == EINTR) { #ifdef THREAD - thread_schedule(); + thred_schedule(); #endif continue; } @@ -197,7 +197,7 @@ f_wait() while ((pid = wait(&state)) < 0) { if (errno == EINTR) { #ifdef THREAD - thread_schedule(); + thred_schedule(); #endif continue; } @@ -728,7 +728,7 @@ f_system(argc, argv) case -1: if (errno == EAGAIN) { #ifdef THREAD - thread_sleep(1); + thred_sleep(1); #else sleep(1); #endif @@ -758,10 +758,10 @@ f_sleep(argc, argv) beg = time(0); #ifdef THREAD if (argc == 0) { - thread_sleep_forever(); + thred_sleep_forever(); } else if (argc == 1) { - thread_wait_for(time_timeval(argv[0])); + thred_wait_for(time_timeval(argv[0])); } #else if (argc == 0) { |