Lines Matching full:original
197 struct ck_stack original, update; in ck_stack_pop_mpmc() local
199 original.generation = ck_pr_load_ptr(&target->generation); in ck_stack_pop_mpmc()
201 original.head = ck_pr_load_ptr(&target->head); in ck_stack_pop_mpmc()
202 if (original.head == NULL) in ck_stack_pop_mpmc()
208 update.generation = original.generation + 1; in ck_stack_pop_mpmc()
209 update.head = original.head->next; in ck_stack_pop_mpmc()
211 while (ck_pr_cas_ptr_2_value(target, &original, &update, &original) == false) { in ck_stack_pop_mpmc()
212 if (original.head == NULL) in ck_stack_pop_mpmc()
215 update.generation = original.generation + 1; in ck_stack_pop_mpmc()
219 update.head = original.head->next; in ck_stack_pop_mpmc()
222 return original.head; in ck_stack_pop_mpmc()
231 struct ck_stack original, update; in ck_stack_trypop_mpmc() local
233 original.generation = ck_pr_load_ptr(&target->generation); in ck_stack_trypop_mpmc()
235 original.head = ck_pr_load_ptr(&target->head); in ck_stack_trypop_mpmc()
236 if (original.head == NULL) in ck_stack_trypop_mpmc()
239 update.generation = original.generation + 1; in ck_stack_trypop_mpmc()
241 update.head = original.head->next; in ck_stack_trypop_mpmc()
243 if (ck_pr_cas_ptr_2_value(target, &original, &update, &original) == true) { in ck_stack_trypop_mpmc()
244 *r = original.head; in ck_stack_trypop_mpmc()