concurrentqueue icon indicating copy to clipboard operation
concurrentqueue copied to clipboard

One thread, two consumer / producer tokens

Open benstadin opened this issue 3 years ago • 0 comments

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?

benstadin avatar Apr 21 '22 21:04 benstadin