aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--thread.c6
2 files changed, 8 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 4aa364a275..c637fec6c8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Tue Nov 20 10:14:22 2012 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
+
+ * thread.c (rb_thread_s_check_interrupt): removed redundant
+ GET_THREAD().
+
Tue Nov 20 10:12:46 2012 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* thread.c (rb_threadptr_async_errinfo_active_p): added a small
diff --git a/thread.c b/thread.c
index 38251afd56..0ab92e5182 100644
--- a/thread.c
+++ b/thread.c
@@ -1682,12 +1682,12 @@ check_interrupt_func(rb_thread_t *cur_th)
static VALUE
rb_thread_s_check_interrupt(VALUE self)
{
- rb_thread_t *th = GET_THREAD();
+ rb_thread_t *cur_th = GET_THREAD();
- if (!rb_threadptr_async_errinfo_empty_p(th)) {
+ if (!rb_threadptr_async_errinfo_empty_p(cur_th)) {
VALUE mask = rb_hash_new();
rb_hash_aset(mask, rb_cObject, ID2SYM(rb_intern("immediate")));
- rb_threadptr_interrupt_mask(GET_THREAD(), mask, check_interrupt_func);
+ rb_threadptr_interrupt_mask(cur_th, mask, check_interrupt_func);
}
return Qnil;