summaryrefslogtreecommitdiff
path: root/ext/tcltklib
diff options
context:
space:
mode:
authornagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-11-22 13:52:48 +0000
committernagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-11-22 13:52:48 +0000
commit615a54e77d00c0b456fe6a6f8b6d48203e25b3ac (patch)
treebf0ace3a2218c9f5558eb31073d899e90d51c360 /ext/tcltklib
parent448b1af751fed5976948d629d9b7028a7d044506 (diff)
* ext/tk/lib/tk.rb: add Tk.grab_release and fix bug of TkComposite
* ext/tk/lib/tkafter.rb: bug fix * ext/tk/sample/tkcombobox.rb: new sample script * ext/tcltklib/tcltklib.c: add native thread check git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5007 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/tcltklib')
-rw-r--r--ext/tcltklib/tcltklib.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/tcltklib/tcltklib.c b/ext/tcltklib/tcltklib.c
index d20c24eb22..50c654d814 100644
--- a/ext/tcltklib/tcltklib.c
+++ b/ext/tcltklib/tcltklib.c
@@ -503,7 +503,9 @@ lib_eventloop_core(check_root, check_var)
rb_trap_exec();
} else {
DUMP1("thread scheduling");
- rb_thread_schedule();
+ if (is_ruby_native_thread()) {
+ rb_thread_schedule();
+ }
}
}
return 1;