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

ruby-changes:30084

From: ko1 <ko1@a...>
Date: Tue, 23 Jul 2013 19:38:48 +0900 (JST)
Subject: [ruby-changes:30084] ko1:r42136 (trunk): * thread_pthread.h, thread_win32.h: rename rb_thread_id_t to

ko1	2013-07-23 19:38:36 +0900 (Tue, 23 Jul 2013)

  New Revision: 42136

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=42136

  Log:
    * thread_pthread.h, thread_win32.h: rename rb_thread_id_t to
      rb_nativethread_id_t.
    * thread_pthread.c, vm_core.h: use rb_nativethread_id_t.

  Modified files:
    trunk/ChangeLog
    trunk/thread_pthread.c
    trunk/thread_pthread.h
    trunk/thread_win32.h
    trunk/vm_core.h

Index: thread_win32.h
===================================================================
--- thread_win32.h	(revision 42135)
+++ thread_win32.h	(revision 42136)
@@ -21,7 +21,7 @@ https://github.com/ruby/ruby/blob/trunk/thread_win32.h#L21
 WINBASEAPI BOOL WINAPI
 TryEnterCriticalSection(IN OUT LPCRITICAL_SECTION lpCriticalSection);
 
-typedef HANDLE rb_thread_id_t;
+typedef HANDLE rb_nativethread_id_t;
 
 typedef union rb_thread_lock_union {
     HANDLE mutex;
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 42135)
+++ ChangeLog	(revision 42136)
@@ -1,3 +1,10 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Tue Jul 23 19:34:11 2013  Koichi Sasada  <ko1@a...>
+
+	* thread_pthread.h, thread_win32.h: rename rb_thread_id_t to
+	  rb_nativethread_id_t.
+
+	* thread_pthread.c, vm_core.h: use rb_nativethread_id_t.
+
 Tue Jul 23 18:56:11 2013  Koichi Sasada  <ko1@a...>
 
 	* ext/openssl/ossl.c: use system native (system provided)
Index: thread_pthread.c
===================================================================
--- thread_pthread.c	(revision 42135)
+++ thread_pthread.c	(revision 42136)
@@ -572,7 +572,7 @@ get_stack(void **addr, size_t *size) https://github.com/ruby/ruby/blob/trunk/thread_pthread.c#L572
 #endif
 
 static struct {
-    rb_thread_id_t id;
+    rb_nativethread_id_t id;
     size_t stack_maxsize;
     VALUE *stack_start;
 #ifdef __ia64
@@ -694,7 +694,7 @@ ruby_init_stack(volatile VALUE *addr https://github.com/ruby/ruby/blob/trunk/thread_pthread.c#L694
 static int
 native_thread_init_stack(rb_thread_t *th)
 {
-    rb_thread_id_t curr = pthread_self();
+    rb_nativethread_id_t curr = pthread_self();
 
     if (pthread_equal(curr, native_main_thread.id)) {
 	th->machine_stack_start = native_main_thread.stack_start;
Index: thread_pthread.h
===================================================================
--- thread_pthread.h	(revision 42135)
+++ thread_pthread.h	(revision 42136)
@@ -15,7 +15,7 @@ https://github.com/ruby/ruby/blob/trunk/thread_pthread.h#L15
 #ifdef HAVE_PTHREAD_NP_H
 #include <pthread_np.h>
 #endif
-typedef pthread_t rb_thread_id_t;
+typedef pthread_t rb_nativethread_id_t;
 typedef pthread_mutex_t rb_nativethread_lock_t;
 
 typedef struct rb_thread_cond_struct {
Index: vm_core.h
===================================================================
--- vm_core.h	(revision 42135)
+++ vm_core.h	(revision 42136)
@@ -526,7 +526,7 @@ typedef struct rb_thread_struct { https://github.com/ruby/ruby/blob/trunk/vm_core.h#L526
     VALUE root_svar;
 
     /* thread control */
-    rb_thread_id_t thread_id;
+    rb_nativethread_id_t thread_id;
     enum rb_thread_status status;
     int to_kill;
     int priority;

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

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