ruby-changes:19399
From: kosaki <ko1@a...>
Date: Thu, 5 May 2011 22:26:26 +0900 (JST)
Subject: [ruby-changes:19399] Ruby:r31439 (trunk): * thread_pthread.c (native_mutex_reinitialize_atfork): removed
kosaki 2011-05-05 22:26:18 +0900 (Thu, 05 May 2011) New Revision: 31439 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=31439 Log: * thread_pthread.c (native_mutex_reinitialize_atfork): removed unused macro. * thread_win32.c (native_mutex_reinitialize_atfork): ditto. Modified files: trunk/ChangeLog trunk/thread_pthread.c trunk/thread_win32.c Index: thread_win32.c =================================================================== --- thread_win32.c (revision 31438) +++ thread_win32.c (revision 31439) @@ -379,8 +379,6 @@ #endif } -#define native_mutex_reinitialize_atfork(lock) (void)(lock) - static void native_mutex_destroy(rb_thread_lock_t *lock) { Index: ChangeLog =================================================================== --- ChangeLog (revision 31438) +++ ChangeLog (revision 31439) @@ -1,3 +1,9 @@ +Thu May 5 22:23:34 2011 KOSAKI Motohiro <kosaki.motohiro@g...> + + * thread_pthread.c (native_mutex_reinitialize_atfork): removed + unused macro. + * thread_win32.c (native_mutex_reinitialize_atfork): ditto. + Thu May 5 22:09:39 2011 Nobuyoshi Nakada <nobu@r...> * ext/date/date_core.c (DAY_IN_NANOSECONDS): long long int is not Index: thread_pthread.c =================================================================== --- thread_pthread.c (revision 31438) +++ thread_pthread.c (revision 31439) @@ -29,11 +29,6 @@ static void native_cond_initialize(pthread_cond_t *cond); static void native_cond_destroy(pthread_cond_t *cond); -#define native_mutex_reinitialize_atfork(lock) (\ - native_mutex_unlock(lock), \ - native_mutex_initialize(lock), \ - native_mutex_lock(lock)) - #define GVL_SIMPLE_LOCK 0 #define GVL_DEBUG 0 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/