1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* thread_pthread.c (NATIVE_MUTEX_LOCK_DEBUG): move and use it.

* ChangeLog: fix my timezone.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29964 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ko1 2010-11-28 13:16:50 +00:00
parent e4cf9c59fd
commit 283c36e761
2 changed files with 11 additions and 5 deletions

View file

@ -1,8 +1,14 @@
Mon Nov 29 05:58:58 2010 Koichi Sasada <ko1@atdot.net>
Sun Nov 28 22:13:39 2010 Koichi Sasada <ko1@atdot.net>
* thread_pthread.c (NATIVE_MUTEX_LOCK_DEBUG): move and use it.
* ChangeLog: fix my timezone.
Mon Nov 28 21:58:58 2010 Koichi Sasada <ko1@atdot.net>
* thread_pthread.c: remove pthread_atfork().
Mon Nov 29 05:54:22 2010 Koichi Sasada <ko1@atdot.net>
Mon Nov 28 21:54:22 2010 Koichi Sasada <ko1@atdot.net>
* thread_pthread.c (native_cond_*): Check return code.
(Some OSs except Linux return error code).

View file

@ -153,10 +153,12 @@ gvl_atfork(rb_vm_t *vm)
gvl_acquire(vm, GET_THREAD());
}
#define NATIVE_MUTEX_LOCK_DEBUG 0
static void
mutex_debug(const char *msg, pthread_mutex_t *lock)
{
if (0) {
if (NATIVE_MUTEX_LOCK_DEBUG) {
int r;
static pthread_mutex_t dbglock = PTHREAD_MUTEX_INITIALIZER;
@ -166,8 +168,6 @@ mutex_debug(const char *msg, pthread_mutex_t *lock)
}
}
#define NATIVE_MUTEX_LOCK_DEBUG 1
static void
native_mutex_lock(pthread_mutex_t *lock)
{