Lines Matching defs:xa
15 static int item_insert_order(struct xarray *xa, unsigned long index,
18 XA_STATE_ORDER(xas, xa, index, order);
34 void multiorder_iteration(struct xarray *xa)
36 XA_STATE(xas, xa, 0);
47 err = item_insert_order(xa, index[i], order[i]);
71 item_kill_tree(xa);
74 void multiorder_tagged_iteration(struct xarray *xa)
76 XA_STATE(xas, xa, 0);
90 assert(!item_insert_order(xa, index[i], order[i]));
92 assert(!xa_marked(xa, XA_MARK_1));
95 xa_set_mark(xa, tag_index[i], XA_MARK_1);
122 assert(tag_tagged_items(xa, 0, ULONG_MAX, TAG_ENTRIES, XA_MARK_1,
149 assert(tag_tagged_items(xa, 1, ULONG_MAX, MT_NUM_ENTRIES * 2, XA_MARK_1,
159 item_kill_tree(xa);
198 static void multiorder_iteration_race(struct xarray *xa)
204 pthread_create(&worker_thread[0], NULL, &creator_func, xa);
206 pthread_create(&worker_thread[i], NULL, &iterator_func, xa);
211 item_kill_tree(xa);