summaryrefslogtreecommitdiff
path: root/rubysig.h
diff options
context:
space:
mode:
Diffstat (limited to 'rubysig.h')
-rw-r--r--rubysig.h10
1 files changed, 2 insertions, 8 deletions
diff --git a/rubysig.h b/rubysig.h
index 6c6ce57..aadc869 100644
--- a/rubysig.h
+++ b/rubysig.h
@@ -22,7 +22,6 @@ extern int rb_prohibit_interrupt;
extern int rb_trap_pending;
void rb_trap_restore_mask _((void));
-#ifdef USE_THREAD
extern int rb_thread_critical;
void rb_thread_schedule _((void));
#if defined(HAVE_SETITIMER) && !defined(__BOW__)
@@ -31,11 +30,11 @@ extern int rb_thread_pending;
if (rb_trap_pending) rb_trap_exec();\
if (rb_thread_pending && !rb_thread_critical) rb_thread_schedule();\
}
-# else
+#else
/* pseudo preemptive thread switching */
extern int rb_thread_tick;
#define THREAD_TICK 500
-# define CHECK_INTS if (!rb_prohibit_interrupt) {\
+#define CHECK_INTS if (!rb_prohibit_interrupt) {\
if (rb_trap_pending) rb_trap_exec();\
if (!rb_thread_critical) {\
if (rb_thread_tick-- <= 0) {\
@@ -44,11 +43,6 @@ extern int rb_thread_tick;
}\
}\
}
-# endif
-#else
-# define CHECK_INTS if (!rb_prohibit_interrupt) {\
- if (rb_trap_pending) rb_trap_exec();\
-}
#endif
#endif