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

ruby-changes:34678

From: normal <ko1@a...>
Date: Wed, 9 Jul 2014 05:50:45 +0900 (JST)
Subject: [ruby-changes:34678] normal:r46761 (trunk): thread_pthread.h: do not expose pthread type for lock

normal	2014-07-09 05:50:37 +0900 (Wed, 09 Jul 2014)

  New Revision: 46761

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

  Log:
    thread_pthread.h: do not expose pthread type for lock
    
    * thread_pthread.h (struct rb_global_vm_lock_struct):
      do not expose pthread type for lock

  Modified files:
    trunk/ChangeLog
    trunk/thread_pthread.h
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 46760)
+++ ChangeLog	(revision 46761)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Wed Jul  9 05:49:08 2014  Eric Wong  <e@8...>
+
+	* thread_pthread.h (struct rb_global_vm_lock_struct):
+	  do not expose pthread type for lock
+
 Wed Jul  9 05:41:40 2014  Eric Wong  <e@8...>
 
 	* thread_pthread.h: remove unneeded semaphore.h include
Index: thread_pthread.h
===================================================================
--- thread_pthread.h	(revision 46760)
+++ thread_pthread.h	(revision 46761)
@@ -35,7 +35,7 @@ typedef struct native_thread_data_struct https://github.com/ruby/ruby/blob/trunk/thread_pthread.h#L35
 typedef struct rb_global_vm_lock_struct {
     /* fast path */
     unsigned long acquired;
-    pthread_mutex_t lock;
+    rb_nativethread_lock_t lock;
 
     /* slow path */
     volatile unsigned long waiting;

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

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