diff options
author | NIIBE Yutaka <gniibe@fsij.org> | 2016-05-12 11:17:17 +0900 |
---|---|---|
committer | NIIBE Yutaka <gniibe@fsij.org> | 2016-05-12 11:17:17 +0900 |
commit | 5c1638c02329c479ea0c11ffa24ec84b37600feb (patch) | |
tree | 5888380af230eae505aa2bf892d9c46082e20ebe | |
parent | 420bd135afbddfd604d30b40683340d4c70debd8 (diff) |
Fix mutex init
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | chopstx.c | 1 |
2 files changed, 5 insertions, 0 deletions
@@ -1,3 +1,7 @@ +2016-05-12 NIIBE Yutaka <gniibe@fsij.org> + + * chopstx.c (chopstx_mutex_init): Initialize OWNER, too. + 2016-04-24 Niibe Yutaka <gniibe@fsij.org> * chopstx.c (chx_snooze): Wait forever when it's POLL and usec==0. @@ -1182,6 +1182,7 @@ chopstx_mutex_init (chopstx_mutex_t *mutex) chx_spin_init (&mutex->lock); mutex->q.next = mutex->q.prev = (struct chx_pq *)&mutex->q; mutex->list = NULL; + mutex->owner = NULL; } |