xHarbour Reference Documentation > Function Reference xHarbour Developers Network  

HB_MutexUnlock()

Unlocks a Mutex.

Syntax

HB_MutexUnlock( <pMutexHandle> ) --> NIL

Arguments

<pMutexHandle>
This is the handle of the Mutex to unlock. It is the return value of HB_MutexCreate().

Return

The function returns always NIL.

Description

Function HB_MutexUnlock() releases a lock previously set with HB_MutexLock(), HB_MutexTimeoutLock() or HB_MutexTryLock(). A Mutex must be unlocked in the same thread that has obtained a lock.

Refer to HB_MutexCreate() for more information on Mutexes.

Info

See also:GetCurrentThread(), GetThreadID(), HB_MutexCreate(), HB_MutexLock(), HB_MutexTimeoutLock(), HB_MutexTryLock(), Notify(), StartThread(), Subscribe()
Category: Multi-threading functions , Mutex functions , xHarbour extensions
Source:vm\thread.c
LIB:xhbmt.lib
DLL:xhbmtdll.dll


Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe