Ode to a Vyukov Queue
int08h.com
int08h.com
The original implementation is a bit more involved [1]. Here, the stub entry is not considered at all during the pop.
[1] http://www.1024cores.net/home/lock-free-algorithms/queues/in...
http://www.1024cores.net/home/lock-free-algorithms/queues/no...