summaryrefslogtreecommitdiff
path: root/thread.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-10-08 23:16:20 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-10-08 23:16:20 +0000
commit88533a5351c302a5d67a506a63db1b199244d143 (patch)
tree2bd5f62fa34884f4f21bc2f965af8c45ce01c85d /thread.c
parent9c06fa133e0826bea96c1c80cddc92151ddd535b (diff)
* thread.c (rb_threadptr_remove_event_hook): fix typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29427 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/thread.c b/thread.c
index 11c87be183..856d86dd71 100644
--- a/thread.c
+++ b/thread.c
@@ -3847,7 +3847,7 @@ remove_event_hook(rb_event_hook_t **root, rb_event_hook_func_t func)
}
static int
-rb_threadptr_revmove_event_hook(rb_thread_t *th, rb_event_hook_func_t func)
+rb_threadptr_remove_event_hook(rb_thread_t *th, rb_event_hook_func_t func)
{
int ret = remove_event_hook(&th->event_hooks, func);
thread_reset_event_flags(th);
@@ -3857,7 +3857,7 @@ rb_threadptr_revmove_event_hook(rb_thread_t *th, rb_event_hook_func_t func)
int
rb_thread_remove_event_hook(VALUE thval, rb_event_hook_func_t func)
{
- return rb_threadptr_revmove_event_hook(thval2thread_t(thval), func);
+ return rb_threadptr_remove_event_hook(thval2thread_t(thval), func);
}
int
@@ -3879,7 +3879,7 @@ clear_trace_func_i(st_data_t key, st_data_t val, st_data_t flag)
{
rb_thread_t *th;
GetThreadPtr((VALUE)key, th);
- rb_threadptr_revmove_event_hook(th, 0);
+ rb_threadptr_remove_event_hook(th, 0);
return ST_CONTINUE;
}
@@ -3994,7 +3994,7 @@ thread_set_trace_func_m(VALUE obj, VALUE trace)
{
rb_thread_t *th;
GetThreadPtr(obj, th);
- rb_threadptr_revmove_event_hook(th, call_trace_func);
+ rb_threadptr_remove_event_hook(th, call_trace_func);
if (NIL_P(trace)) {
return Qnil;