Custom thread-safe queue not exiting when atomic boolean is triggered

后端 未结 0 437
闹比i
闹比i 2020-12-03 00:08

So I created a queue designed to be thread-safe:

template 
class SafeQueue {
public:
  SafeQueue(atomic& exit_requested) : q(),         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题