diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-16 14:56:14 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-16 14:56:14 +0000 |
commit | 0a10a2580bb066d92ff6f7545bba2f02a0d47c49 (patch) | |
tree | da87dabe3587df4f2f006d8cfac0f5d259b2f81f | |
parent | e5d06b92d7759173528b18114737469e4227f234 (diff) | |
download | ruby-0a10a2580bb066d92ff6f7545bba2f02a0d47c49.tar.gz ruby-0a10a2580bb066d92ff6f7545bba2f02a0d47c49.tar.xz ruby-0a10a2580bb066d92ff6f7545bba2f02a0d47c49.zip |
* thread.c (thread_start_func_2): use PRIxVALUE to format a VALUE.
* thread.c (ruby_native_thread_p): removed unused declaration.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17367 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | thread.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -376,7 +376,8 @@ thread_start_func_2(rb_thread_t *th, VALUE *stack_start, VALUE *register_stack_s /* locking_mutex must be Qfalse */ if (th->locking_mutex != Qfalse) { - rb_bug("thread_start_func_2: locking_mutex must be NULL (%p:%ld)", th, th->locking_mutex); + rb_bug("thread_start_func_2: locking_mutex must not be set (%p:%"PRIxVALUE")", + th, th->locking_mutex); } /* unlock all locking mutexes */ @@ -3401,7 +3402,6 @@ Init_Thread(void) int ruby_native_thread_p(void) { - rb_thread_t *rb_thread_check_ptr(rb_thread_t *ptr); rb_thread_t *th = ruby_thread_from_native(); return th ? Qtrue : Qfalse; |