summaryrefslogtreecommitdiff
path: root/rubysig.h
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1998-06-26 09:45:09 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1998-06-26 09:45:09 +0000
commit05da25f297c4d26b6bb454a9649b1dd63a102910 (patch)
tree568d1118ca9c2c7bfbcaf2d2132a7e870367d407 /rubysig.h
parent839f4c5f3fdb4ea6b270fce17f1c3881060087d4 (diff)
980626
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/v1_1r@255 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'rubysig.h')
-rw-r--r--rubysig.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/rubysig.h b/rubysig.h
index 0e5e8ebd9a..fa99c847b8 100644
--- a/rubysig.h
+++ b/rubysig.h
@@ -23,24 +23,24 @@ extern int trap_pending;
void trap_restore_mask _((void));
#ifdef THREAD
-extern int thred_critical;
-void thred_schedule _((void));
+extern int thread_critical;
+void thread_schedule _((void));
#if defined(HAVE_SETITIMER) && !defined(__BOW__)
-extern int thred_pending;
+extern int thread_pending;
# define CHECK_INTS if (!prohibit_interrupt) {\
if (trap_pending) rb_trap_exec();\
- if (thred_pending && !thred_critical) thred_schedule();\
+ if (thread_pending && !thread_critical) thread_schedule();\
}
# else
/* pseudo preemptive thread switching */
-extern int thred_tick;
+extern int thread_tick;
#define THREAD_TICK 500
# define CHECK_INTS if (!prohibit_interrupt) {\
if (trap_pending) rb_trap_exec();\
- if (!thred_critical) {\
- if (thred_tick-- <= 0) {\
- thred_tick = THREAD_TICK;\
- thred_schedule();\
+ if (!thread_critical) {\
+ if (thread_tick-- <= 0) {\
+ thread_tick = THREAD_TICK;\
+ thread_schedule();\
}\
}\
}