mutex

mutex

 英

  • 网络互斥量;互斥体;互斥锁

例句

The slot's connection is checked to see if it is blocked or disconnected, and then the connection's mutex is unlocked.

插槽连接检查是否阻塞断开然后连接互斥

The name of the system mutex whose access control security rules are to be retrieved.

检索访问控制安全性规则系统mutex名称

Then, when a thread is ready to terminate, it locks the mutex, decrements threadcount, and unlocks the mutex.

一个线程准备终止再次锁定互斥threadcount然后互斥

The code between the lock and unlock calls to the mutex, is referred to as the critical section.

打开关闭互斥调用之间代码称为临界

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

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

If the calling thread has no ownership of this mutex, this function fails.

如果调用线程并不拥有这个互斥信号那么这个函数执行失败

As you can see, pthread_mutex_init accepts a pointer to an already-allocated region of memory to initialize as a mutex.

正如,pthread_mutex_init接受一个指针作为参数初始化为互斥对象指针指向一块分配内存

Mutual exclusion (most often referred to as mutex) allows the programmer to "attach" locks to resources.

互斥通常称为mutex允许编程人员资源上锁

A mutex provides exclusive access control for a resource between threads, as shown in.

互斥提供线程资源独占访问控制

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

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

The constructor and destructor of the queue class are responsible for the creation and destruction of the mutex, as shown in Listing 1.

队列构造函数函数负责创建销毁互斥清单1。

Mutex objects are synchronization objects that can be owned by only a single thread at a time.

Mutex对象一次只能线程拥有同步对象

It is a simple lock with only the thread that owns the lock being able to release the mutex.

一个简单只有持有线程可以释放那个互斥

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

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

Class with the specified sections of the access control security rules from the system mutex with the specified name.

使用来自具有指定名称系统mutex访问控制安全性规则指定部分初始

A thread holding a mutex can be de-scheduled, perhaps because it was the end of its time-slice.

可能因为分配时间结束持有互斥线程取消调度

The mutex API provides five functions: three are used for locking, one for unlocking, and another for testing a mutex.

互斥API提供了5函数其中3用于锁定一个用于另一个用于测试互斥

A process can specify the name of a mutex object in a call to the OpenMutex or CreateMutex function.

进程可以OpenMutex函数CreateMutex函数指定互斥对象名称

Clearly, pushing data into the queue is akin to appending data to the list, and this operation must be guarded by mutex locks.

显然数据队列数据添加列表必须使用互斥保护这个操作

A far better approach would be to define another method that accepts a list of integers and acquire and release the mutex only once.

更好做法定义另一个方法接收一系列整数获取释放互斥一次

The state of a mutex object is signaled when it is not owned by any thread.

互斥对象属于任何一个线程互斥状态状态

A MutexSecurity object that represents the access control security to be applied to the named system mutex.

一个MutexSecurity对象表示用于命名系统互斥访问控制安全性

Meanwhile, another handle you forced closed was reused as a mutex handle, which is used to help prevent data from being corrupted.

同时另一个强制关闭重用作为用于帮助防止数据损坏一个互斥

If not awake otherwise, at the end of the timeout, the reader needs to wake itself up and release the mutex.

如果超时时间结束没有唤醒线程需要唤醒自身释放互斥

The procedure for creating and using a mutex is a bit more complicated than the procedure for starting a thread.

创建使用互斥过程仅仅开始一个线程过程稍微复杂一些

Finally, you can check the status of a mutex through a call to mutex_is_locked.

最后可以通过调用mutex_is_locked检查互斥状态

Buffer acquisition is managed through the use of latches, known as mutex, and lock-access information.

缓冲区获取通过使用latch访问信息管理称作mutex

The example uses the OpenExisting(String) method overload to test for the existence of a named mutex.

示例使用OpenExistingString方法重载测试指定mutex是否存在

It could repeatedly lock and unlock a mutex, each time checking a shared data structure for a certain value.

可以重复互斥对象锁定和解每次检查共享数据结构查找某个

We also referenced lists of mutex sample codes to help you when you undertake the migration activity involving Win32 to Linux.

我们引用一系列互斥示例代码帮助进行Win32Linux迁移行动

Threads request ownership of the mutex object when they require exclusive access to a resource.

线程需要独占访问某个资源请求mutex对象所属

A signal's mutex is automatically locked whenever any of the signal's methods are called.

调用信号任何方法信号互斥都会自动

For similar synchronization between the threads of different processes, use a mutex object.

对于不同进程之间类似线程同步使用互斥对象

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

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

The display thread must wait for the mutex to be clear before updating the display.

显示线程更新显示之前必须等待清除互斥

The name of the system mutex.

系统互斥名称

Initializer defines shared memory id m_shmid and a semaphore ms_mutex for synchronous event handling.

Initializer定义共享内存idm_shmid一个用来处理同步事件信号量ms_mutex。

To open an existing named mutex with only those permissions needed for synchronizing thread activities, see the OpenExisting method.

若要使用线程活动进行同步权限打开现有命名Mutex请参见OpenExisting方法

To "lock" a mutex means to wait until the mutex is unowned, and then make it owned by the current thread.

锁定一个互斥意味等待直至互斥变为然后当前线程拥有。”

In order for a task to run under MARS, it must acquire the session mutex.

任务必须获取会话互斥才能MARS运行