ruby-changes:20200
From: kosaki <ko1@a...>
Date: Mon, 27 Jun 2011 21:18:10 +0900 (JST)
Subject: [ruby-changes:20200] kosaki:r32248 (trunk): * thread_pthread.c: s/__gvl_acquire/gvl_acquire_common/ and
kosaki 2011-06-27 21:18:00 +0900 (Mon, 27 Jun 2011) New Revision: 32248 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=32248 Log: * thread_pthread.c: s/__gvl_acquire/gvl_acquire_common/ and s/__gvl_release/gvl_release_common/. Modified files: trunk/ChangeLog trunk/thread_pthread.c Index: ChangeLog =================================================================== --- ChangeLog (revision 32247) +++ ChangeLog (revision 32248) @@ -1,3 +1,8 @@ +Mon Jun 27 21:16:11 2011 KOSAKI Motohiro <kosaki.motohiro@g...> + + * thread_pthread.c: s/__gvl_acquire/gvl_acquire_common/ and + s/__gvl_release/gvl_release_common/. + Mon Jun 27 11:41:47 2011 NARUSE, Yui <naruse@r...> * thread_pthread.c (rb_thread_create_timer_thread): Index: thread_pthread.c =================================================================== --- thread_pthread.c (revision 32247) +++ thread_pthread.c (revision 32248) @@ -46,7 +46,7 @@ #endif static void -__gvl_acquire(rb_vm_t *vm) +gvl_acquire_common(rb_vm_t *vm) { if (vm->gvl.acquired) { @@ -75,12 +75,12 @@ gvl_acquire(rb_vm_t *vm, rb_thread_t *th) { native_mutex_lock(&vm->gvl.lock); - __gvl_acquire(vm); + gvl_acquire_common(vm); native_mutex_unlock(&vm->gvl.lock); } static void -__gvl_release(rb_vm_t *vm) +gvl_release_common(rb_vm_t *vm) { vm->gvl.acquired = 0; if (vm->gvl.waiting > 0) @@ -91,7 +91,7 @@ gvl_release(rb_vm_t *vm) { native_mutex_lock(&vm->gvl.lock); - __gvl_release(vm); + gvl_release_common(vm); native_mutex_unlock(&vm->gvl.lock); } @@ -100,7 +100,7 @@ { native_mutex_lock(&vm->gvl.lock); - __gvl_release(vm); + gvl_release_common(vm); /* An another thread is processing GVL yield. */ if (UNLIKELY(vm->gvl.wait_yield)) { @@ -129,7 +129,7 @@ vm->gvl.wait_yield = 0; native_cond_broadcast(&vm->gvl.switch_wait_cond); acquire: - __gvl_acquire(vm); + gvl_acquire_common(vm); native_mutex_unlock(&vm->gvl.lock); } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/