Lines Matching full:owner
46 unsigned int owner; member
60 bytelock->owner = 0; in ck_bytelock_init()
88 while (ck_pr_cas_uint(&bytelock->owner, 0, slot) == false) in ck_bytelock_write_lock()
123 ck_pr_store_uint(&bytelock->owner, 0); in ck_bytelock_write_unlock()
131 if (ck_pr_load_uint(&bytelock->owner) == slot) { in ck_bytelock_read_lock()
134 ck_pr_store_uint(&bytelock->owner, 0); in ck_bytelock_read_lock()
143 if (ck_pr_load_uint(&bytelock->owner) == 0) in ck_bytelock_read_lock()
147 while (ck_pr_load_uint(&bytelock->owner) != 0) in ck_bytelock_read_lock()
166 * If there is no owner at this point, our slot has in ck_bytelock_read_lock()
170 if (ck_pr_load_uint(&bytelock->owner) == 0) in ck_bytelock_read_lock()
174 while (ck_pr_load_uint(&bytelock->owner) != 0) in ck_bytelock_read_lock()