• The thread that activates once the counter reaches the limit would wait on the condition variable.

    一旦计数器达到界限就激活线程等待条件变量

    youdao

  • A condition variable allows a task to wait on a synchronization primitive within a critical region.

    条件变量允许任务等待一个同步语,以进入临界区。

    youdao

  • In some implementations, threads may occasionally wake up without a signal sent to their condition variable.

    有些实现中线程可能偶尔在没有信号送到条件变量的情况下过来。

    youdao

  • A condition variable enables developers to implement a condition in which a thread executes and then blocked.

    条件变量开发者能够实现一个条件,这个条件下线程执行然后被阻塞。

    youdao

  • Instead of throwing an exception when the queue is empty, the reader thread now blocks itself on the condition variable.

    队列时候,线程现在并不抛出异常而是条件变量阻塞自身

    youdao

  • An aspect of the mutex I haven't covered here is that many operating systems support the concept of a condition variable.

    互斥锁有个讲到方面很多操作系统支持条件变量概念

    youdao

  • If another thread calls pthread_cond_signal on a condition, then a thread that was waiting on that condition variable is woken up.

    如果另一个线程条件变量调用pthread_cond_signal,那么那个等待这个条件而被阻塞的线程就会被唤醒。

    youdao

  • Therefore, at the end of it all, you now have two reader threads, both waiting on the condition variable, and the mutex is unlocked.

    因此最后两个线程等待条件变量互斥锁没有锁住。

    youdao

  • It also allows you to unlock the mutex and wait on the condition variable atomically, without the possible intervention of another thread.

    允许原子地(atomically)解除互斥锁定,等待条件变量不会有干涉其他线程可能

    youdao

  • When you're done with a condition variable, you can release any resources allocated during initialization with a call to pthread_cond_destroy .

    不再使用条件变量时,应该调用pthread_cond_destroy释放初始化时分配资源

    youdao

  • To work around this omission, I use the POSIX condition variable emulations synchronization primitives, which are outlined in the series of articles.

    解决缺憾使用POSIX条件变量模拟同步原语一系列文章中对此进行了概述。

    youdao

  • The function primarily used for this is pthread_cond_wait . It takes two arguments; the first is a pointer to a condition variable, and the second is a locked mutex.

    函数pthread_cond_wait主要就是用于阻塞线程的,两个参数第一个指向条件变量指针第二个是一个锁定了的互斥量。

    youdao

  • Next, the reader thread needs to ensure (and this is the second check you perform) that it does not wait on the condition variable any more than the specified timeout period.

    接下来线程需要确保(第二检查)等待条件变量时间超过指定超时时间

    youdao

  • If the queue is full, the writer thread waits on the _wcond condition variable; the reader thread will need a notification to all threads after consuming data from the queue.

    如果队列了,线程等待_ wcond条件变量线程队列中取出数据之后需要通知所有线程

    youdao

  • Doing so awakens all the reader threads that were waiting on the condition variable _cond; the reader threads now implicitly compete for the mutex lock as and when it is released.

    这么会唤醒所有等待条件变量_ cond线程;读线程现在隐式地争夺互斥锁。

    youdao

  • The Multi-work Condition Declivitous Impact Testing System was introduced which has variable impacting angle, rigidity, and length of stroke.

    论述了多工况倾斜冲击试验系统系统具有可变冲击角度刚度行程长度

    youdao

  • Most programming languages have something called an assert-a statement that stops the processing when a certain condition is met, such as an unexpected value in an important variable.

    大多数语言都具有一项称为断言的特性,一种会在满足某项条件停止处理语句例如重要变量出现超出预料的

    youdao

  • Alternatively, you can drop the variable, as in Listing 6, because the condition is so simple.

    另外也可以使用变量清单6所示,因为条件简单。

    youdao

  • Since the expected value at the selected path in the filter condition is only decided during execution, it needs to be defined as a variable.

    由于过滤条件选定路径上的预期执行时确定的,因此需要它定义一个变量

    youdao

  • Use the single equal sign to assign a value to a variable, unlike the double equal sign (==), as in the previous condition, which compare the values.

    使用等于号来向变量而不是像一个条件那样使用双等于号 (==) 来比较值。

    youdao

  • Then the option combination fragment's guard condition is checked to verify the balance is greater then the amount variable.

    然后检验选择项组合碎片约束条件确认余额大于金额变量

    youdao

  • The typical solution to a race condition is to ensure that your program has exclusive rights to something while it's manipulating it, such as a file, device, object, or variable.

    竞争条件典型解决方案确保程序使用某个资源(比如文件设备对象或者变量拥有自己的专有权

    youdao

  • If another thread calls pthread_cond_broadcast on a condition, then all threads waiting on that variable are woken up.

    如果另一个线程对这个条件变量调用pthread_cond_broadcast,那么所有等待这个条件而阻塞的线程都会被唤醒。

    youdao

  • Often, a condition is too complex for the select attribute, and you must define a variable as an RTF.

    通常条件对于select属性来说复杂了,必须变量定义rtf。

    youdao

  • The variable association dialog is launched by clicking the value column of the condition row, and selecting Use a variable to return the value in the drop-down box.

    通过单击条件行的value在下拉框中选择useavariabletoreturnthe value,可以打开变量关联对话框

    youdao

  • The product ID (PID) for each sales entry is passed to the PID variable that was created in the filter condition of the product feed.

    每个销售条目产品ID (PID)传递给PID变量变量在产品提要过滤条件创建的。

    youdao

  • The experiment shows that the HMM wavelet can make the effective diagnosis for various faults of rolling bearings operating under the condition of variable speed and load or unknown speed.

    试验证明,小- HMM可以转速变载荷工况以及未知转速情况滚动轴承各种故障有效地进行诊断

    youdao

  • Copy a delegate to a local variable before publishing to avoid concurrency race condition.

    应用将委托复制局部变量避免并发冲突。

    youdao

  • Copy a delegate to a local variable before publishing to avoid concurrency race condition.

    使用将委托复制局部变量避免并发冲突。

    youdao

  • Copy a delegate to a local variable before publishing to avoid concurrency race condition.

    使用将委托复制局部变量避免并发冲突。

    youdao

$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定