Fix race of chopstx_cond_wait.

This commit is contained in:
NIIBE Yutaka
2013-05-29 08:28:05 +09:00
parent 5552a9590d
commit b5cdd769ee
2 changed files with 57 additions and 30 deletions

View File

@@ -1,3 +1,9 @@
2013-05-29 Niibe Yutaka <gniibe@fsij.org>
* chopstx.c (chx_mutex_unlock, chopstx_exit): New.
(chopstx_mutex_unlock): Use chx_mutex_unlock.
(chopstx_cond_wait): Fix race condition.
2013-05-28 Niibe Yutaka <gniibe@fsij.org>
* chopstx.c (chopstx_intr_wait): Rename from chopstx_wait_intr.