[前][次][番号順一覧][スレッド一覧]

ruby-changes:5860

From: nobu <ko1@a...>
Date: Mon, 16 Jun 2008 23:56:21 +0900 (JST)
Subject: [ruby-changes:5860] Ruby:r17367 (trunk): * thread.c (thread_start_func_2): use PRIxVALUE to format a VALUE.

nobu	2008-06-16 23:56:14 +0900 (Mon, 16 Jun 2008)

  New Revision: 17367

  Modified files:
    trunk/thread.c

  Log:
    * thread.c (thread_start_func_2): use PRIxVALUE to format a VALUE.
    
    * thread.c (ruby_native_thread_p): removed unused declaration.


  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/thread.c?r1=17367&r2=17366&diff_format=u

Index: thread.c
===================================================================
--- thread.c	(revision 17366)
+++ thread.c	(revision 17367)
@@ -376,7 +376,8 @@
 
 	/* 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 @@
 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;

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]