The proper way to cancel a ConcurrentQueue's Pop condition and his consumer thread
I'm currently migrating to TBB, anyway, I will have the same question... I've attached my sources to explain.
My consumer thread could be waiting on a queue.pop(), since it should be signaled on concurrent queue only... what's the better way to deal with this? I know that a queue will never have a terminate() method :P it's just a workaround for now.