summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-09-28 07:25:51 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-09-28 07:25:51 +0000
commit07d12a2a5f99ed6446f86aeb6e13e6c906a238be (patch)
tree586b9deb74521daf23dcefb1623f850725d5cc33
parent8aa618d8e27e9728b6d102bf69e3294d7e9283e6 (diff)
downloadruby-07d12a2a5f99ed6446f86aeb6e13e6c906a238be.tar.gz
* 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
-rw-r--r--ChangeLog4
-rw-r--r--signal.c4
-rw-r--r--thread.c6
-rw-r--r--vm_core.h2
4 files changed, 10 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog
index 3c694f163c..2bb7667358 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
diff --git a/signal.c b/signal.c
index 53e2a0f19f..bd2579dd0a 100644
--- a/signal.c
+++ b/signal.c
@@ -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;
diff --git a/thread.c b/thread.c
index 500def143b..d049104a91 100644
--- a/thread.c
+++ b/thread.c
@@ -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);
}
diff --git a/vm_core.h b/vm_core.h
index fbffa30b28..7e01bfb994 100644
--- a/vm_core.h
+++ b/vm_core.h
@@ -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;