CmtReleaseLock
- Updated2023-02-21
- 2 minute(s) read
CmtReleaseLock
int CmtReleaseLock (CmtThreadLockHandle lockHandle);
Purpose
Releases the thread lock.
You must call this function from the same thread that called CmtGetLock or CmtGetLockEx. You must call this function once for each time that you called CmtGetLock or CmtGetLockEx.
Parameters
Input | ||
Name | Type | Description |
lockHandle | CmtThreadLockHandle | The handle you obtained from CmtNewLock to identify the thread lock. |
Return Value
Name | Type | Description |
cmtStatus | int | The CmtStatus code that the function call returns. This function returns 0 to indicate success and negative values to indicate failure. Pass the CmtStatus code to CmtGetErrorMessage to get a description of the error code. |
Additional Information
Library: Utility Library
Include file: utility.h
LabWindows/CVI compatibility: LabWindows/CVI 5.5 and later