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

ruby-changes:43011

From: nobu <ko1@a...>
Date: Fri, 20 May 2016 23:24:43 +0900 (JST)
Subject: [ruby-changes:43011] nobu:r55085 (trunk): thread_pthread.c: no fork, no gvl_atfork

nobu	2016-05-20 23:24:39 +0900 (Fri, 20 May 2016)

  New Revision: 55085

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

  Log:
    thread_pthread.c: no fork, no gvl_atfork
    
    * thread_pthread.c (gvl_atfork): used in rb_thread_atfork_internal
      only if HAVE_WORKING_FORK is defined.

  Modified files:
    trunk/thread_pthread.c
Index: thread_pthread.c
===================================================================
--- thread_pthread.c	(revision 55084)
+++ thread_pthread.c	(revision 55085)
@@ -181,12 +181,14 @@ gvl_destroy(rb_vm_t *vm) https://github.com/ruby/ruby/blob/trunk/thread_pthread.c#L181
     native_mutex_destroy(&vm->gvl.lock);
 }
 
+#if defined(HAVE_WORKING_FORK)
 static void
 gvl_atfork(rb_vm_t *vm)
 {
     gvl_init(vm);
     gvl_acquire(vm, GET_THREAD());
 }
+#endif
 
 #define NATIVE_MUTEX_LOCK_DEBUG 0
 

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

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