void add_items(queue & stk) { for (long i = 0; i != node_count; ++i) { long id = generate_id<long>(); bool inserted = data.insert(id); assert(inserted); if (Bounded) while(stk.bounded_push(id) == false) /*thread::yield()*/; else while(stk.push(id) == false) /*thread::yield()*/; ++push_count; } }