From dfcc89576d958472e026e88f9c0e862e32fda349 Mon Sep 17 00:00:00 2001 From: nagai Date: Tue, 14 Jun 2011 20:20:59 +0000 Subject: * 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. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32096 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/tk/tcltklib.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'ext') diff --git a/ext/tk/tcltklib.c b/ext/tk/tcltklib.c index d27af153a5..f0f0b4a6db 100644 --- a/ext/tk/tcltklib.c +++ b/ext/tk/tcltklib.c @@ -2526,11 +2526,11 @@ lib_eventloop_core(check_root, update_flag, check_var, interp) rb_thread_schedule(); } - DUMP1("trap check & thread scheduling"); -#ifdef RUBY_USE_NATIVE_THREAD - /* if (update_flag == 0) CHECK_INTS; */ /*XXXXXXXXXXXXX TODO !!!! */ -#else + 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) CHECK_INTS; #endif } -- cgit v1.2.3