我想知道这种情况是否(线程)安全.
有一个线程只推送到std :: queue. 还有另一个线程只从std :: queue弹出. 由于队列是否为空,是线程安全管理,后一个线程不会弹出失败.
请问你能帮帮我吗?
谢谢.
c++ queue multithreading thread-safety
c++ ×1
multithreading ×1
queue ×1
thread-safety ×1