|
|
@ -146,6 +146,7 @@ ck_bag_iterator_init(ck_bag_iterator_t *iterator, ck_bag_t *bag)
|
|
|
|
|
|
|
|
|
|
|
|
iterator->block = ck_pr_load_ptr(&bag->head);
|
|
|
|
iterator->block = ck_pr_load_ptr(&bag->head);
|
|
|
|
iterator->index = 0;
|
|
|
|
iterator->index = 0;
|
|
|
|
|
|
|
|
iterator->n_entries = 0;
|
|
|
|
if (iterator->block != NULL)
|
|
|
|
if (iterator->block != NULL)
|
|
|
|
iterator->n_entries = ck_bag_block_count(iterator->block);
|
|
|
|
iterator->n_entries = ck_bag_block_count(iterator->block);
|
|
|
|
|
|
|
|
|
|
|
|