• 但是对于某个变量条件产生的模糊性是应该限制的。

    But ambiguity need not be restricted to conditions of one variable.

    youdao

  • 一个条件表达了各种变量之间关系正确的还是错误的。

    Each condition expresses a relationship among variables that must be resolvable as true or false.

    youdao

  • 不过每个条件变量应该伴有一个互斥

    However, a mutex should accompany each condition variable.

    youdao

  • 还要注意两个条件变量使用相同互斥锁

    Also note that both condition variables use the same mutex.

    youdao

  • 采用这种方法可以模拟各种条件事件发生次序变量

    With this approach, you could simulate the various conditions, sequence, and variables.

    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

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

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

    youdao

  • 线程模块提供了许多同步原语包括信号量条件变量事件

    The threading module does provide many synchronization primatives, including semaphores, condition variables, events, and locks.

    youdao

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

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

    youdao

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

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

    youdao

  • 不但要求仔细分析在什么条件可以变量进行读写而且要求仔细分析其它如何使用某个

    It requires a careful analysis of not only the conditions under which variables will be read or written, but also of how the class might be used by other classes.

    youdao

  • 当然可以创建一个全局脚本使用条件环境变量HOSTNAME选择合适设置

    Of course, you can also create a global script and use conditionals and the environment variable HOSTNAME to choose the appropriate settings.

    youdao

  • 可以方便地创建变量循环使用条件创建函数

    You won't have any trouble creating variables, looping, using conditionals, and creating functions.

    youdao

  • 对于清单13清单14要注意一点这个阻塞队列两个条件变量而不是一个

    The first thing of note in Listing 13 and Listing 14 is that there are two condition variables instead of the one that the blocking queue had.

    youdao

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

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

    youdao

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

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

    youdao

  • 条件指定变量必须设置断点中,否则表达式没有什么意义!

    The variables specified in the condition must be in scope at whatever line you set the breakpoint on, otherwise the expression wouldn't make sense!

    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

  • 对象变量特定条件运用对象的状态确保不会拥有非法

    Object invariants are used to enforce certain conditions on objects to make sure they don't obtain illegal values.

    youdao

  • 这个操作要消耗一定时间实际上这个时间长了,可能在进行这项操作的同时,线程所等待条件变量的值在这期间已经改变了。

    This may take some time. In fact, it may take so much time that the condition you were waiting for is no longer the case.

    youdao

  • 正是POSIX条件变量的事!

    That's precisely what POSIX condition variables can do for you!

    youdao

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

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

    youdao

  • push方法依赖任何条件变量所以没有额外的等待

    Now, the push method doesn't depend on any condition variables, so no extra waiting there.

    youdao

  • 而且条件可能以下变量发生改变

    Furthermore, the conditions may be changed as according to these variables.

    youdao

  • ClosureStylesheets让我们可以使用@if、@elseif@else,从而基于某些变量创建条件语句的分支

    Closure Stylesheets allows the use of @if, @elseif and @else in creating conditional branches based on the value of some variables.

    youdao

  • 这些例子演示scheme一些关键特性此外还演示了变量条件循环

    These examples illustrate variables, conditionals, and loops in addition to some of the key features of Scheme.

    youdao

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

    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.

    youdao

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

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

    youdao

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

    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.

    youdao

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

    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.

    youdao

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

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

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