ck_spinlock: Acquire semantics for anderson spinlock.

ck_pring
Samy Al Bahra 12 years ago
parent f87e0caf99
commit 8face51e0d

@ -142,7 +142,7 @@ ck_spinlock_anderson_lock(struct ck_spinlock_anderson *lock,
/* Prepare slot for potential re-use by another thread. */
ck_pr_store_uint(&lock->slots[position].locked, true);
ck_pr_fence_store();
ck_pr_fence_memory();
*slot = lock->slots + position;
return;

Loading…
Cancel
Save