ck_bytelock: Switch to full semantics on unlock.

RW semantics may be used for shared write-side.
ck_pring
Samy Al Bahra 13 years ago
parent a06f28b77c
commit 5df8882840

@ -171,7 +171,7 @@ CK_CC_INLINE static void
ck_bytelock_read_unlock(struct ck_bytelock *bytelock, unsigned int slot) ck_bytelock_read_unlock(struct ck_bytelock *bytelock, unsigned int slot)
{ {
ck_pr_fence_load(); ck_pr_fence_memory();
slot -= 1; slot -= 1;
if (slot > sizeof bytelock->readers) if (slot > sizeof bytelock->readers)

Loading…
Cancel
Save