1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* vm_core.h (rb_vm_struct): fix typo: bufferd -> buffered.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13546 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2007-09-28 07:25:51 +00:00
parent 8aa618d8e2
commit 07d12a2a5f
4 changed files with 10 additions and 6 deletions

View file

@ -1,3 +1,7 @@
Fri Sep 28 16:22:52 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
* vm_core.h (rb_vm_struct): fix typo: bufferd -> buffered.
Fri Sep 28 15:47:48 2007 Koichi Sasada <ko1@atdot.net>
* benchmark/driver.rb: fix to output benchmark results

View file

@ -451,7 +451,7 @@ sighandler(int sig)
{
rb_vm_t *vm = GET_VM(); /* fix me for Multi-VM */
ATOMIC_INC(vm->signal_buff[sig]);
ATOMIC_INC(vm->bufferd_signal_size);
ATOMIC_INC(vm->buffered_signal_size);
#if !defined(BSD_SIGNAL) && !defined(POSIX_SIGNAL)
ruby_signal(sig, sighandler);
@ -501,7 +501,7 @@ rb_get_next_signal(rb_vm_t *vm)
rb_disable_interrupt();
{
ATOMIC_DEC(vm->signal_buff[i]);
ATOMIC_DEC(vm->bufferd_signal_size);
ATOMIC_DEC(vm->buffered_signal_size);
}
rb_enable_interrupt();
sig = i;

View file

@ -1884,10 +1884,10 @@ timer_thread_function(void)
vm->running_thread->interrupt_flag = 1;
/* check signal */
if (vm->bufferd_signal_size && vm->main_thread->exec_signal == 0) {
if (vm->buffered_signal_size && vm->main_thread->exec_signal == 0) {
vm->main_thread->exec_signal = rb_get_next_signal(vm);
thread_debug("bufferd_signal_size: %d, sig: %d\n",
vm->bufferd_signal_size, vm->main_thread->exec_signal);
thread_debug("buffered_signal_size: %d, sig: %d\n",
vm->buffered_signal_size, vm->main_thread->exec_signal);
rb_thread_interrupt(vm->main_thread);
}

View file

@ -326,7 +326,7 @@ typedef struct rb_vm_struct {
/* signal */
rb_atomic_t signal_buff[RUBY_NSIG];
rb_atomic_t bufferd_signal_size;
rb_atomic_t buffered_signal_size;
/* hook */
rb_event_hook_t *event_hooks;