diff --git a/ChangeLog b/ChangeLog index 70c6371..8502595 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2016-05-12 NIIBE Yutaka + + * chopstx.c (chopstx_mutex_init): Initialize OWNER, too. + 2016-04-24 Niibe Yutaka * chopstx.c (chx_snooze): Wait forever when it's POLL and usec==0. diff --git a/chopstx.c b/chopstx.c index 3cb4c02..5910681 100644 --- a/chopstx.c +++ b/chopstx.c @@ -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; }