condition variable信息详情

condition variable发音

意思翻译

条件变量

相似词语短语

variable───n.[数]变量;可变物,可变因素;adj.变量的;可变的;易变的,多变的;变异的,[生物]畸变的

condition───n.条件;情况;环境;身份;vt.决定;使适应;使健康;以…为条件

variable costs───可变成本

operating condition───运行状态,运行条件;操作规范;运行条件,运转状态; 工作状况[条件]; 操作规范[条件]; 操纵[控制]条件

dry condition───干工况

rare condition───罕见的情况

unfavorable condition───不利条件;处境不利

heart condition───n.心脏病;心脏病(电影名)

variable resistor───[电]可变电阻器

双语使用场景

However, a mutex should accompany each condition variable.───不过,每个条件变量都应该伴有一个互斥。

In some implementations, threads may occasionally wake up without a signal sent to their condition variable.───在有些实现中,线程可能偶尔在没有信号送到条件变量的情况下醒过来。

A condition variable enables developers to implement a condition in which a thread executes and then blocked.───条件变量让开发者能够实现一个条件,在这个条件下线程执行然后被阻塞。

Therefore, at the end of it all, you now have two reader threads, both waiting on the condition variable, and the mutex is unlocked.───因此,最后两个读线程都等待条件变量,互斥锁没有被锁住。

It also allows you to unlock the mutex and wait on the condition variable atomically, without the possible intervention of another thread.───它还允许您原子地(atomically)解除互斥的锁定,并等待条件变量,而不会有干涉其他线程的可能。

The notion of a state-based condition variable is an important one.───基于状态的条件变量的概念是很重要的。

Release all waiting threads without changing the state of the underlying condition variable.───释放所有等待的线程,而不改变其下面的条件变量的状态。

If you want to create multiple conditions to use with your transport rule, repeat this process for each condition variable.───如果要为传输规则创建多个条件,请为各个条件变量重复该过程。

Methods, there can be more than one condition variable associated with a given.───可以有不止一个条件变量与它关联。

英语使用场景