concurrencykit / ck

Concurrency primitives, safe memory reclamation mechanisms and non-blocking (including lock-free) data structures designed to aid in the research, design and implementation of high performance concurrent systems developed in C99+.
http://concurrencykit.org/
Other
2.35k stars 312 forks source link

ck_fifo: Return fifo->garbage at spsc deinit #146

Closed pamaddox closed 4 years ago

pamaddox commented 4 years ago

This code was returning the head of the fifo as garbage during a de-init. It should instead return the fifo->garbage value.

sbahra commented 4 years ago

Thank you!