summaryrefslogtreecommitdiff
path: root/thread.c
diff options
context:
space:
mode:
authormame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-06-12 14:33:07 +0000
committermame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-06-12 14:33:07 +0000
commit5734e59aed24ba2f6f77949778a29e0d9faa4f40 (patch)
tree2aa7adae6c92d425b376e677ced26bd0e2d5c12c /thread.c
parent4b022866eec600f3ed03ed57d5f7b05f09946b10 (diff)
* 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
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c1
1 files changed, 1 insertions, 0 deletions
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++;
}
}