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.
該示例使用OpenExisting(String)方法重載來測試指定的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.
我們還引用了一系列互斥示例代碼來幫助您進行從Win32到Linux的遷移行動。
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下運行。