2 ms·
I do it. Without mutexes. I don't count single-writer ring buffers among the ordinary lock-free queues, because there is no competition for access, and cache l
by ncmncm 6y ago
I do it. Without mutexes.
I don't count single-writer ring buffers among the ordinary lock-free queues, because there is no competition for access, and cache lines never change ownership. So, none of the overheads show up. And, they are very easy to get right, so pose none of the risk of subtle heisenbugs.
Being able to kill and add downstream clients at random is worth a lot of architectural rejiggery.