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 | 546ccf2049e7bd8eb3ea1cf8929f11f5af9c0873 (patch) | |
tree | 2aa7adae6c92d425b376e677ced26bd0e2d5c12c /thread.c | |
parent | ca098f904b46b2f57271c7fbaac46b5565d22dc3 (diff) | |
download | ruby-546ccf2049e7bd8eb3ea1cf8929f11f5af9c0873.tar.gz ruby-546ccf2049e7bd8eb3ea1cf8929f11f5af9c0873.tar.xz ruby-546ccf2049e7bd8eb3ea1cf8929f11f5af9c0873.zip |
* thread.c (mutex_unlock): fix cond_notified consistency.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17113 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread.c')
-rw-r--r-- | thread.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -2579,6 +2579,7 @@ mutex_unlock(mutex_t *mutex) /* waiting thread */ native_cond_signal(&mutex->cond); mutex->cond_waiting--; + mutex->cond_notified++; } } |