unlock_mutexT_unlock_mutexUnlockMutexUnlockMutexunlock_mutex (算子)

名称

unlock_mutexT_unlock_mutexUnlockMutexUnlockMutexunlock_mutex — Unlock a mutex synchronization object.

签名

unlock_mutex( : : MutexHandle : )

Herror T_unlock_mutex(const Htuple MutexHandle)

void UnlockMutex(const HTuple& MutexHandle)

void HMutex::UnlockMutex() const

static void HOperatorSet.UnlockMutex(HTuple mutexHandle)

void HMutex.UnlockMutex()

def unlock_mutex(mutex_handle: HHandle) -> None

描述

unlock_mutexunlock_mutexUnlockMutexUnlockMutexUnlockMutexunlock_mutex unlocks the mutex object given by MutexHandleMutexHandleMutexHandleMutexHandlemutexHandlemutex_handle. The mutex is assumed to be locked and owned by the calling thread. Unlocking a mutex that is already unlocked has no effect.

执行信息

参数

MutexHandleMutexHandleMutexHandleMutexHandlemutexHandlemutex_handle (输入控制)  mutex HMutex, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Mutex synchronization object.

结果

If the mutex handle is valid, the operator unlock_mutexunlock_mutexUnlockMutexUnlockMutexUnlockMutexunlock_mutex 返回 2 ( H_MSG_TRUE )。如有必要,则抛出异常。

可能的前趋

lock_mutexlock_mutexLockMutexLockMutexLockMutexlock_mutex, try_lock_mutextry_lock_mutexTryLockMutexTryLockMutexTryLockMutextry_lock_mutex

可能的后继

lock_mutexlock_mutexLockMutexLockMutexLockMutexlock_mutex, try_lock_mutextry_lock_mutexTryLockMutexTryLockMutexTryLockMutextry_lock_mutex, clear_mutexclear_mutexClearMutexClearMutexClearMutexclear_mutex

模块

基础