
still, if it performs better than my spsc ringbuffer, it would be interesting to use it as template specialization for pointer types ...
Well, IMO, it should perform better because the producer and consumer are not thrashing each other wrt the head and tail indexes.
yes, it would increase the size of the ringbuffer, but thrashing of the indices should be reduced, especially, if they are placed in different cache lines. i will do a bit of profiling to get some numbers. thanks, tim -- tim@klingt.org http://tim.klingt.org It is better to make a piece of music than to perform one, better to perform one than to listen to one, better to listen to one than to misuse it as a means of distraction, entertainment, or acquisition of 'culture'. John Cage