cameron314 / concurrentqueue

A fast multi-producer, multi-consumer lock-free concurrent queue for C++11
Other
9.87k stars 1.69k forks source link

One thread, two consumer / producer tokens #293

Open benstadin opened 2 years ago

benstadin commented 2 years ago

For architecture reasons I'm creating a consumer and producer token each in two separate classes running on the same thread. So there are effectively two consumer tokens and two producer tokens used within the same thread. Theoretically I could

Is there a performance penalty to be expected when multiple tokens are used with the same thread? Or any other side effect?