diff options
author | kosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-11-19 11:15:07 +0000 |
---|---|---|
committer | kosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-11-19 11:15:07 +0000 |
commit | 57ee8128514f9e904325436099088703ee5938e5 (patch) | |
tree | 0aed11ae801fcf1fcd329b432fe28fd7e3467b0a /thread.c | |
parent | 4b25e0ceca487725f4579d21271546e2bd0d3563 (diff) |
* thread.c (rb_thread_s_check_interrupt): removed redundant
GET_THREAD().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37732 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread.c')
-rw-r--r-- | thread.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; |