ruby-changes:19942
From: akr <ko1@a...>
Date: Sat, 11 Jun 2011 10:17:18 +0900 (JST)
Subject: [ruby-changes:19942] akr:r31989 (trunk): * thread.c (rb_thread_execute_interrupts): use GetThreadPtr to extract
akr 2011-06-11 10:17:11 +0900 (Sat, 11 Jun 2011) New Revision: 31989 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=31989 Log: * thread.c (rb_thread_execute_interrupts): use GetThreadPtr to extract rb_thread_t from VALUE. reorted by Motohiro KOSAKI. [ruby-dev:43700] Modified files: trunk/ChangeLog trunk/thread.c Index: ChangeLog =================================================================== --- ChangeLog (revision 31988) +++ ChangeLog (revision 31989) @@ -1,3 +1,9 @@ +Sat Jun 11 10:15:50 2011 Tanaka Akira <akr@f...> + + * thread.c (rb_thread_execute_interrupts): use GetThreadPtr to extract + rb_thread_t from VALUE. + reorted by Motohiro KOSAKI. [ruby-dev:43700] + Sat Jun 11 10:00:49 2011 Nobuyoshi Nakada <nobu@r...> * ruby.c (ruby_process_options): add missing return type. Index: thread.c =================================================================== --- thread.c (revision 31988) +++ thread.c (revision 31989) @@ -1360,9 +1360,11 @@ } 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/