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/branches/ruby_1_8@9437 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
fe8b5f63c7
commit
0e851c5288
2 changed files with 6 additions and 2 deletions
|
@ -1,3 +1,7 @@
|
|||
Fri Oct 21 19:21:56 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
|
||||
|
||||
* rubysig.h (CHECK_INTS): fixed typo. (I believe bit-or is improper)
|
||||
|
||||
Fri Oct 21 15:27:17 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
|
||||
|
||||
* bignum.c (bignew_1): convertion from `int' to `char' discards
|
||||
|
|
|
@ -82,7 +82,7 @@ void rb_thread_schedule _((void));
|
|||
#if defined(HAVE_SETITIMER) || defined(_THREAD_SAFE)
|
||||
RUBY_EXTERN int rb_thread_pending;
|
||||
# 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_trap_pending) rb_trap_exec();\
|
||||
}\
|
||||
|
@ -92,7 +92,7 @@ RUBY_EXTERN int rb_thread_pending;
|
|||
RUBY_EXTERN int rb_thread_tick;
|
||||
#define THREAD_TICK 500
|
||||
#define CHECK_INTS do {\
|
||||
if (!(rb_prohibit_interrupt | rb_thread_critical)) {\
|
||||
if (!(rb_prohibit_interrupt || rb_thread_critical)) {\
|
||||
if (rb_thread_tick-- <= 0) {\
|
||||
rb_thread_tick = THREAD_TICK;\
|
||||
rb_thread_schedule();\
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue