mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* rubysig.h (CHECK_INTS): fixed typo. (I believe bit-or is improper)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9437 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
5b014a7427
commit
1a61008f18
2 changed files with 8 additions and 4 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
Fri Oct 21 19:16:08 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
|
||||||
|
|
||||||
|
* rubysig.h (CHECK_INTS): fixed typo. (I believe bit-or is improper)
|
||||||
|
|
||||||
Fri Oct 21 17:49:32 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
|
Fri Oct 21 17:49:32 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
* bin/erb (ERB::Main::run): typo fixed. [ruby-core:06337]
|
* bin/erb (ERB::Main::run): typo fixed. [ruby-core:06337]
|
||||||
|
|
|
@ -82,7 +82,7 @@ void rb_thread_schedule(void);
|
||||||
#if defined(HAVE_SETITIMER) || defined(_THREAD_SAFE)
|
#if defined(HAVE_SETITIMER) || defined(_THREAD_SAFE)
|
||||||
RUBY_EXTERN int rb_thread_pending;
|
RUBY_EXTERN int rb_thread_pending;
|
||||||
# define CHECK_INTS do {\
|
# define CHECK_INTS do {\
|
||||||
if (!(rb_prohibit_interrupt | rb_thread_critical)) {\
|
if (!(rb_prohibit_interrupt || rb_thread_critical)) {\
|
||||||
if (rb_thread_pending) rb_thread_schedule();\
|
if (rb_thread_pending) rb_thread_schedule();\
|
||||||
if (rb_trap_pending) rb_trap_exec();\
|
if (rb_trap_pending) rb_trap_exec();\
|
||||||
}\
|
}\
|
||||||
|
@ -92,10 +92,10 @@ RUBY_EXTERN int rb_thread_pending;
|
||||||
RUBY_EXTERN int rb_thread_tick;
|
RUBY_EXTERN int rb_thread_tick;
|
||||||
#define THREAD_TICK 500
|
#define THREAD_TICK 500
|
||||||
#define CHECK_INTS do {\
|
#define CHECK_INTS do {\
|
||||||
if (!(rb_prohibit_interrupt | rb_thread_critical)) {\
|
if (!(rb_prohibit_interrupt || rb_thread_critical)) {\
|
||||||
if (rb_thread_tick-- <= 0) {\
|
if (rb_thread_tick-- <= 0) {\
|
||||||
rb_thread_tick = THREAD_TICK;
|
rb_thread_tick = THREAD_TICK;\
|
||||||
rb_thread_schedule();
|
rb_thread_schedule();\
|
||||||
}\
|
}\
|
||||||
}\
|
}\
|
||||||
if (rb_trap_pending) rb_trap_exec();\
|
if (rb_trap_pending) rb_trap_exec();\
|
||||||
|
|
Loading…
Reference in a new issue