use ATOMIC_INIT()

This commit is contained in:
christos 2019-03-04 19:16:10 +00:00
parent f27c68ffb8
commit 9fcfb587d6

View File

@ -103,7 +103,7 @@ typedef struct {
.n_wait_times = 0, \
.n_spin_acquired = 0, \
.max_n_thds = 0, \
.n_waiting_thds = 0, \
.n_waiting_thds = ATOMIC_INIT(0), \
.n_owner_switches = 0, \
.prev_owner = NULL, \
.n_lock_ops = 0, \