ruby-changes:20049
From: nagai <ko1@a...>
Date: Wed, 15 Jun 2011 05:21:10 +0900 (JST)
Subject: [ruby-changes:20049] nagai:r32096 (trunk): * ext/tk/tcltklib.c (lib_eventloop_core): revert the last change (it's
nagai 2011-06-15 05:20:59 +0900 (Wed, 15 Jun 2011) New Revision: 32096 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=32096 Log: * ext/tk/tcltklib.c (lib_eventloop_core): revert the last change (it's the part for ruby_1_8), and use rb_thread_check_ints() when RUBY_VM is defined. Modified files: trunk/ChangeLog trunk/ext/tk/tcltklib.c Index: ChangeLog =================================================================== --- ChangeLog (revision 32095) +++ ChangeLog (revision 32096) @@ -1,3 +1,9 @@ +Wed Jun 15 05:12:59 2011 Hidetoshi NAGAI <nagai@a...> + + * ext/tk/tcltklib.c (lib_eventloop_core): revert the last change (it's + the part for ruby_1_8), and use rb_thread_check_ints() when RUBY_VM + is defined. + Wed Jun 15 04:42:47 2011 Koichi Sasada <ko1@a...> * benchmark/bm_vm3_thread_*.rb: renamed bm_vm3_thread_*.rb to Index: ext/tk/tcltklib.c =================================================================== --- ext/tk/tcltklib.c (revision 32095) +++ ext/tk/tcltklib.c (revision 32096) @@ -2526,11 +2526,11 @@ rb_thread_schedule(); } - DUMP1("trap check & thread scheduling"); -#ifdef RUBY_USE_NATIVE_THREAD - /* if (update_flag == 0) CHECK_INTS; */ /*XXXXXXXXXXXXX TODO !!!! */ + DUMP1("check interrupts"); +#if defined(RUBY_USE_NATIVE_THREAD) || defined(RUBY_VM) + if (update_flag == 0) rb_thread_check_ints(); #else - if (update_flag == 0) rb_thread_check_ints(); + if (update_flag == 0) CHECK_INTS; #endif } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/