以上来源于: WordNet
This means that if the system could not perform the push or pop operation within the time limit you specify, the operation should not execute at all.
这意味着,如果系统无法在指定的时间限制内执行添加和取出操作,就应该根本不执行操作。
Because you're sharing the same mutex for push and pop operations, the data-read speed is somewhat compromised as writer threads access the lock.
因为添加和取出数据操作使用相同的互斥锁,所以读取数据的速度会影响写数据的线程访问锁。
Based on this idea, let's look at the concept of a concurrent queue where push and pop operations come with timeouts.
根据这个概念,我们来看看如何给并发队列的添加和取出操作增加超时限制。
应用推荐