我需要一个同时读取/写入的消息双端队列。只写就够了吗
std::atomic<std::deque<Message>> queue;
这对于具有 astd::deque<Message> queue_和 astd::mutex mutex_作为数据成员并mutex_在将任何操作转发到之前锁定的包装类是否相同queue_?
我需要一个同时读取/写入的消息双端队列。只写就够了吗
std::atomic<std::deque<Message>> queue;
这对于具有 astd::deque<Message> queue_和 astd::mutex mutex_作为数据成员并mutex_在将任何操作转发到之前锁定的包装类是否相同queue_?