diff options
author | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-12 14:33:07 +0000 |
---|---|---|
committer | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-12 14:33:07 +0000 |
commit | 5734e59aed24ba2f6f77949778a29e0d9faa4f40 (patch) | |
tree | 2aa7adae6c92d425b376e677ced26bd0e2d5c12c | |
parent | 4b022866eec600f3ed03ed57d5f7b05f09946b10 (diff) | |
download | ruby-5734e59aed24ba2f6f77949778a29e0d9faa4f40.tar.gz |
* 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
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | thread.c | 1 |
2 files changed, 5 insertions, 0 deletions
@@ -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. @@ -2579,6 +2579,7 @@ mutex_unlock(mutex_t *mutex) /* waiting thread */ native_cond_signal(&mutex->cond); mutex->cond_waiting--; + mutex->cond_notified++; } } |