ck_spinlock: Minor readability changes to ck_hclh.

ck_pring
Samy Al Bahra 11 years ago
parent c219593967
commit e8b26ec212

@ -894,9 +894,10 @@ ck_spinlock_hclh_lock(struct ck_spinlock_hclh **glob_queue,
/* Now we need to splice the local queue into the global queue. */
local_tail = ck_pr_load_ptr(local_queue);
previous = ck_pr_fas_ptr(glob_queue, local_tail);
ck_pr_store_uint(&local_tail->splice, true);
previous = ck_pr_fas_ptr(glob_queue, local_tail);
/* Wait until previous thread from the global queue is done with lock. */
while (ck_pr_load_uint(&previous->wait) == true)
ck_pr_stall();

Loading…
Cancel
Save