summaryrefslogtreecommitdiff
path: root/thread.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-09-04 12:00:24 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-09-04 12:00:24 +0000
commit80843ea156b7b2849b1fcc9764e85f70811cdd89 (patch)
tree2e4641fffcfc6c336d2326a2c0f0a6ac48ae7dfa /thread.c
parent0031967d2012896b7e86548a661cd0e1b3b52fa5 (diff)
downloadruby-80843ea156b7b2849b1fcc9764e85f70811cdd89.tar.gz
* thread.c (rb_thread_check_trap_pending): added for compatibility.
* ext/tk/tcltklib.c, ext/tk/tkutil/tkutil.c: remove ruby/signal.h dependency. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19128 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/thread.c b/thread.c
index 268b58e7cd..c2227d8297 100644
--- a/thread.c
+++ b/thread.c
@@ -890,6 +890,16 @@ rb_thread_check_ints(void)
RUBY_VM_CHECK_INTS();
}
+/*
+ * Hidden API for tcl/tk wrapper.
+ * There is no guarantee to perpetuate it.
+ */
+int
+rb_thread_check_trap_pending(void)
+{
+ return GET_THREAD()->exec_signal != 0;
+}
+
struct timeval rb_time_timeval();
void