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 /rubysig.h | |
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 'rubysig.h')
-rw-r--r-- | rubysig.h | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -23,24 +23,24 @@ extern int trap_pending; void trap_restore_mask _((void)); #ifdef THREAD -extern int thread_critical; -void thread_schedule _((void)); +extern int thred_critical; +void thred_schedule _((void)); #if defined(HAVE_SETITIMER) && !defined(__BOW__) -extern int thread_pending; +extern int thred_pending; # define CHECK_INTS if (!prohibit_interrupt) {\ if (trap_pending) rb_trap_exec();\ - if (thread_pending && !thread_critical) thread_schedule();\ + if (thred_pending && !thred_critical) thred_schedule();\ } # else /* pseudo preemptive thread switching */ -extern int thread_tick; +extern int thred_tick; #define THREAD_TICK 500 # define CHECK_INTS if (!prohibit_interrupt) {\ if (trap_pending) rb_trap_exec();\ - if (!thread_critical) {\ - if (thread_tick-- <= 0) {\ - thread_tick = THREAD_TICK;\ - thread_schedule();\ + if (!thred_critical) {\ + if (thred_tick-- <= 0) {\ + thred_tick = THREAD_TICK;\ + thred_schedule();\ }\ }\ } |