1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
mame 2008-06-12 14:33:07 +00:00
parent 4b022866ee
commit 5734e59aed
2 changed files with 5 additions and 0 deletions

View file

@ -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> Thu Jun 12 22:19:45 2008 NAKAMURA Usaku <usa@ruby-lang.org>
* thread_win32.c (native_sleep): fixed previous commit. * thread_win32.c (native_sleep): fixed previous commit.

View file

@ -2579,6 +2579,7 @@ mutex_unlock(mutex_t *mutex)
/* waiting thread */ /* waiting thread */
native_cond_signal(&mutex->cond); native_cond_signal(&mutex->cond);
mutex->cond_waiting--; mutex->cond_waiting--;
mutex->cond_notified++;
} }
} }