From 5734e59aed24ba2f6f77949778a29e0d9faa4f40 Mon Sep 17 00:00:00 2001 From: mame Date: Thu, 12 Jun 2008 14:33:07 +0000 Subject: * thread.c (mutex_unlock): fix cond_notified consistency. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17113 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ thread.c | 1 + 2 files changed, 5 insertions(+) diff --git a/ChangeLog b/ChangeLog index 833e367c43..20e502e480 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Thu Jun 12 23:30:11 2008 Yusuke Endoh + + * thread.c (mutex_unlock): fix cond_notified consistency. + Thu Jun 12 22:19:45 2008 NAKAMURA Usaku * thread_win32.c (native_sleep): fixed previous commit. diff --git a/thread.c b/thread.c index 9454f84aca..73adab4b4c 100644 --- a/thread.c +++ b/thread.c @@ -2579,6 +2579,7 @@ mutex_unlock(mutex_t *mutex) /* waiting thread */ native_cond_signal(&mutex->cond); mutex->cond_waiting--; + mutex->cond_notified++; } } -- cgit v1.2.3