mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* include/ruby/ruby.h, thread.c: rename is_ruby_native_thread() to
ruby_native_thread_p(). * ext/tk/tcltklib.c: apply it. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14680 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ed7b25a854
commit
b79c868296
4 changed files with 17 additions and 10 deletions
|
@ -1,3 +1,10 @@
|
|||
Tue Dec 25 16:26:48 2007 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* include/ruby/ruby.h, thread.c: rename is_ruby_native_thread() to
|
||||
ruby_native_thread_p().
|
||||
|
||||
* ext/tk/tcltklib.c: apply it.
|
||||
|
||||
Tue Dec 25 16:15:15 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* common.mk (clean-enc): clean encoding objects.
|
||||
|
|
|
@ -1298,7 +1298,7 @@ eventloop_sleep(dummy)
|
|||
|
||||
#if 0
|
||||
#ifdef HAVE_NATIVETHREAD
|
||||
if (!is_ruby_native_thread()) {
|
||||
if (!ruby_native_thread_p()) {
|
||||
rb_bug("cross-thread violation on eventloop_sleep()");
|
||||
}
|
||||
#endif
|
||||
|
@ -1310,7 +1310,7 @@ eventloop_sleep(dummy)
|
|||
|
||||
#if 0
|
||||
#ifdef HAVE_NATIVETHREAD
|
||||
if (!is_ruby_native_thread()) {
|
||||
if (!ruby_native_thread_p()) {
|
||||
rb_bug("cross-thread violation on eventloop_sleep()");
|
||||
}
|
||||
#endif
|
||||
|
@ -2457,7 +2457,7 @@ tcl_protect(interp, proc, data)
|
|||
|
||||
#if 0
|
||||
#ifdef HAVE_NATIVETHREAD
|
||||
if (!is_ruby_native_thread()) {
|
||||
if (!ruby_native_thread_p()) {
|
||||
rb_bug("cross-thread violation on tcl_protect()");
|
||||
}
|
||||
#endif
|
||||
|
@ -2866,7 +2866,7 @@ ip_rbUpdateCommand(clientData, interp, objc, objv)
|
|||
}
|
||||
#if 0
|
||||
#ifdef HAVE_NATIVETHREAD
|
||||
if (!is_ruby_native_thread()) {
|
||||
if (!ruby_native_thread_p()) {
|
||||
rb_bug("cross-thread violation on ip_ruby_eval()");
|
||||
}
|
||||
#endif
|
||||
|
@ -3015,7 +3015,7 @@ ip_rb_threadUpdateCommand(clientData, interp, objc, objv)
|
|||
}
|
||||
#if 0
|
||||
#ifdef HAVE_NATIVETHREAD
|
||||
if (!is_ruby_native_thread()) {
|
||||
if (!ruby_native_thread_p()) {
|
||||
rb_bug("cross-thread violation on ip_ruby_eval()");
|
||||
}
|
||||
#endif
|
||||
|
@ -3194,7 +3194,7 @@ ip_rbVwaitCommand(clientData, interp, objc, objv)
|
|||
Tcl_Preserve(interp);
|
||||
#if 0
|
||||
#ifdef HAVE_NATIVETHREAD
|
||||
if (!is_ruby_native_thread()) {
|
||||
if (!ruby_native_thread_p()) {
|
||||
rb_bug("cross-thread violation on ip_ruby_eval()");
|
||||
}
|
||||
#endif
|
||||
|
@ -5964,7 +5964,7 @@ eval_queue_handler(evPtr, flags)
|
|||
if (rb_safe_level() != q->safe_level) {
|
||||
#if 0
|
||||
#ifdef HAVE_NATIVETHREAD
|
||||
if (!is_ruby_native_thread()) {
|
||||
if (!ruby_native_thread_p()) {
|
||||
rb_bug("cross-thread violation on eval_queue_handler()");
|
||||
}
|
||||
#endif
|
||||
|
@ -8384,7 +8384,7 @@ Init_tcltklib()
|
|||
|
||||
/* if ruby->nativethread-supprt and tcltklib->doen't,
|
||||
the following will cause link-error. */
|
||||
is_ruby_native_thread();
|
||||
ruby_native_thread_p();
|
||||
|
||||
/* --------------------------------------------------------------- */
|
||||
|
||||
|
|
|
@ -946,7 +946,7 @@ void ruby_sysinit(int *, char ***);
|
|||
|
||||
#define RUBY_VM 1 /* YARV */
|
||||
#define HAVE_NATIVETHREAD
|
||||
int is_ruby_native_thread(void);
|
||||
int ruby_native_thread_p(void);
|
||||
|
||||
#define RUBY_EVENT_NONE 0x00
|
||||
#define RUBY_EVENT_LINE 0x01
|
||||
|
|
2
thread.c
2
thread.c
|
@ -3119,7 +3119,7 @@ Init_Thread(void)
|
|||
}
|
||||
|
||||
int
|
||||
is_ruby_native_thread(void)
|
||||
ruby_native_thread_p(void)
|
||||
{
|
||||
rb_thread_t *rb_thread_check_ptr(rb_thread_t *ptr);
|
||||
rb_thread_t *th = ruby_thread_from_native();
|
||||
|
|
Loading…
Add table
Reference in a new issue