unlock_mutexT_unlock_mutexUnlockMutexUnlockMutexunlock_mutex (Operator)

Name

unlock_mutexT_unlock_mutexUnlockMutexUnlockMutexunlock_mutex — Unlock a mutex synchronization object.

Signature

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

Description

unlock_mutexunlock_mutexUnlockMutexUnlockMutexunlock_mutex unlocks the mutex object given by MutexHandleMutexHandleMutexHandlemutexHandlemutex_handle. The mutex must have been locked by the calling thread. Attempting to unlock a mutex that is not locked by the calling thread is undefined behavior.

Execution Information

Parameters

MutexHandleMutexHandleMutexHandlemutexHandlemutex_handle (input_control)  mutex HMutex, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Mutex synchronization object.

Result

If the mutex handle is valid, the operator unlock_mutexunlock_mutexUnlockMutexUnlockMutexunlock_mutex returns 2 ( H_MSG_TRUE) . If necessary, an exception is raised.

Possible Predecessors

lock_mutexlock_mutexLockMutexLockMutexlock_mutex, try_lock_mutextry_lock_mutexTryLockMutexTryLockMutextry_lock_mutex

Possible Successors

lock_mutexlock_mutexLockMutexLockMutexlock_mutex, try_lock_mutextry_lock_mutexTryLockMutexTryLockMutextry_lock_mutex, clear_mutexclear_mutexClearMutexClearMutexclear_mutex

Module

Foundation