diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-06-11 01:17:11 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-06-11 01:17:11 +0000 |
commit | 71fdb43e6ecab9d48c24c6e422685c86406a5dda (patch) | |
tree | c050d00f9110ed37583e287306ac1066ef69d67c /thread.c | |
parent | 2e29d255d369c5c0ba9321dd56fc54be9d75d2ab (diff) | |
download | ruby-71fdb43e6ecab9d48c24c6e422685c86406a5dda.tar.gz |
* thread.c (rb_thread_execute_interrupts): use GetThreadPtr to extract
rb_thread_t from VALUE.
reorted by Motohiro KOSAKI. [ruby-dev:43700]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31989 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread.c')
-rw-r--r-- | thread.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1360,9 +1360,11 @@ rb_threadptr_execute_interrupts(rb_thread_t *th) } void -rb_thread_execute_interrupts(VALUE th) +rb_thread_execute_interrupts(VALUE thval) { - rb_threadptr_execute_interrupts_rec((rb_thread_t *)th, 0); + rb_thread_t *th; + GetThreadPtr(thval, th); + rb_threadptr_execute_interrupts_rec(th, 0); } void |