ck_bytelock: Correctly compute byte sequence length for readers.

Thanks to Albi Kavo <albi.kavo@gm...> for spotting this.
ck_pring 0.4
Samy Al Bahra 11 years ago
parent 8f0b88afeb
commit 08be876fa6

@ -67,11 +67,11 @@ ck_bytelock_init(struct ck_bytelock *bytelock)
} }
#ifdef CK_F_PR_LOAD_64 #ifdef CK_F_PR_LOAD_64
#define CK_BYTELOCK_LENGTH 8 #define CK_BYTELOCK_LENGTH sizeof(uint64_t)
#define CK_BYTELOCK_LOAD ck_pr_load_64 #define CK_BYTELOCK_LOAD ck_pr_load_64
#define CK_BYTELOCK_TYPE uint64_t #define CK_BYTELOCK_TYPE uint64_t
#elif defined(CK_F_PR_LOAD_32) #elif defined(CK_F_PR_LOAD_32)
#define CK_BYTELOCK_LENGTH 16 #define CK_BYTELOCK_LENGTH sizeof(uint32_t)
#define CK_BYTELOCK_LOAD ck_pr_load_32 #define CK_BYTELOCK_LOAD ck_pr_load_32
#define CK_BYTELOCK_TYPE uint32_t #define CK_BYTELOCK_TYPE uint32_t
#else #else

Loading…
Cancel
Save