summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--thread.c1
2 files changed, 5 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 833e367c4..20e502e48 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Thu Jun 12 23:30:11 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * thread.c (mutex_unlock): fix cond_notified consistency.
+
Thu Jun 12 22:19:45 2008 NAKAMURA Usaku <usa@ruby-lang.org>
* thread_win32.c (native_sleep): fixed previous commit.
diff --git a/thread.c b/thread.c
index 9454f84ac..73adab4b4 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++;
}
}