atomic_swap
res->hits = atomic_swap(&ctx.skel->bss->hits, 0);
res->hits = atomic_swap(&ctx.skel->bss->hits, 0);
res->hits = atomic_swap(&ctx->hits.value, 0);
res->hits += atomic_swap(&ctx->hits[i].value, 0);
res->hits = atomic_swap(&ctx.skel->bss->op_cnt, 0) / env.producer_cnt;
res->hits = atomic_swap(&ctx.skel->bss->hits, 0);
res->important_hits = atomic_swap(&ctx.skel->bss->important_hits, 0);
res->hits = atomic_swap(&skel->bss->create_cnts, 0);
res->gp_ct = atomic_swap(&ctx.skel->bss->gp_hits, 0);
res->gp_ns = atomic_swap(&ctx.skel->bss->gp_times, 0);
res->hits = atomic_swap(&ctx.bench->bss->hits, 0);
res->duration_ns = atomic_swap(&ctx.bench->bss->duration_ns, 0);
res->hits = atomic_swap(&ctx.hits.value, 0);
res->hits = atomic_swap(&ctx->skel->bss->hits, 0);
res->hits = atomic_swap(&buf_hits.value, 0);
res->drops = atomic_swap(&ctx->skel->bss->dropped, 0);
res->hits = atomic_swap(&buf_hits.value, 0);
res->drops = atomic_swap(&ctx->skel->bss->dropped, 0);
res->hits = atomic_swap(&buf_hits.value, 0);
res->drops = atomic_swap(&ctx->skel->bss->dropped, 0);
res->drops = atomic_swap(&ctx.prod_send, 0);
res->hits = atomic_swap(&ctx.skel->bss->process_byte, 0);
res->false_hits = atomic_swap(&ctx.user_read, 0);
res->important_hits = atomic_swap(&ctx.send_calls, 0);
res->important_hits |= atomic_swap(&ctx.read_calls, 0) << 32;
res->hits = atomic_swap(&ctx.skel->bss->hits, 0);
sum += atomic_swap(&counters[i].value, 0);