• Only one task may hold the mutex at a time, and only this task can unlock the mutex.

    只能任务持有互斥锁,并且只有这个任务可以解锁互斥锁。

    youdao

  • Fear not, you'll still have access to the raw mongrel request if you want to do fancy stuff like streaming or deferred rendering outside the mutex.

    不用害怕如果互斥以外一些奇特事情比如流处理延迟呈现,您仍然可以访问原始mongrel请求

    youdao

  • The mutex kind can be set in two ways.

    可以两种方式设置互斥类型

    youdao

  • Also called a mutex.

    互斥信号。

    youdao

  • The error is not due to the locked mutex.

    那个错误不是归咎于锁定的互斥。

    youdao

  • The problem with a mutex-based approach.

    基于互斥锁的方法问题

    youdao

  • Why mutex at all?

    为什么要用互斥对象?

    youdao

  • But you can also create a mutex dynamically.

    但是可以动态地创建互斥对象。

    youdao

  • After a mutex is locked, it must be unlocked.

    一个互斥锁被锁定后必须解锁

    youdao

  • Using a mutex ensures that this doesn't happen.

    使用互斥对象能够保证这种情形不会发生

    youdao

  • Main thread: Lock mutex and increment threadcount.

    主线程:锁定互斥量增量threadcount

    youdao

  • Mutex me!

    互斥吧!

    youdao

  • The function waits until the mutex becomes unlocked.

    函数等待互斥解锁

    youdao

  • This method allows you to set mutex object attributes.

    这个方法允许设置互斥信号量对象的相关属性

    youdao

  • However, if the mutex is locked this call won't block.

    然而如果互斥对象锁定,这个调用不会阻塞。

    youdao

  • Listing 3 illustrates a static way of setting a mutex.

    清单3介绍设置互斥静态方法

    youdao

  • This creates a new mutex and initializes the structure.

    将创建一个新的互斥锁初始化结构

    youdao

  • However, a mutex should accompany each condition variable.

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

    youdao

  • Also note that both condition variables use the same mutex.

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

    youdao

  • This structure can be used to set various mutex attributes.

    这个结构可用设置各种互斥对象属性

    youdao

  • This function gets a pointer to the mutex it is trying to lock.

    这个函数会获得一个指向正在尝试锁定互斥指针

    youdao

  • No two threads can have the same mutex locked at the same time.

    两个线程不能同时对同一个互斥对象加锁

    youdao

  • If Program a creates a mutex, Program B can see that same mutex.

    如果程序A创建互斥,则程序b可以使用同一个互斥。

    youdao

  • The mutex is simple, but there are some rules you should remember.

    互斥简单但是一些规则必须牢记

    youdao

  • The data structure is in effect "frozen" until the mutex is unlocked.

    那个数据结构实际上冻结”了,直到互斥对象解锁为止。

    youdao

  • In either case, when control is returned, the caller holds the mutex.

    无论哪种情形中控制返回时调用将持有互斥锁。

    youdao

  • This way, the change to add mutex code only has to happen in one place.

    这样使增加互斥代码需要个子程序中进行改动。

    youdao

  • If the mutex already happens to be locked, the caller will go to sleep.

    如果碰巧已经锁定互斥对象调用进入睡眠状态

    youdao

  • The function returns when the mutex is locked, or if an error occurred.

    互斥锁定或者发生错误时,函数返回

    youdao

  • The setup for a lock operation involves allocation of a prelocked mutex.

    锁定操作设置涉及分配预先锁定互斥锁。

    youdao

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

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

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