临界区用unique_lock和condition_variable保护起来,队列平时阻塞,只有在不为空的情况下才会唤醒。
3 3

相关推荐

牛客热帖

牛客网
牛客企业服务