RtkReleaseMutex
RtkReleaseMutex relinquishes ownership of an RTSS mutex.
Syntax
NTSTATUS RtkReleaseMutex( RTSSINST RtssInst, HANDLE Mutex );
Parameters
RtssInst
An RTSSINST value returned from a call to RtkRtssAttach or RtkRtssAttachEx. Must pass in a valid RTSSINST value or the call will fail with STATUS_INVALID_PARAMETER.
Mutex
The handle which identifies the mutex object as returned by a preceding call to RtkCreateMutex or RtkOpenMutex.
Return Value
RtkReleaseMutex returns STATUS_SUCCESS on success or on failure one of the following NTSTATUS error codes is possible:
- STATUS_INVALID_PARAMETER
- STATUS_UNSUCCESSFUL
- STATUS_INVALID_HANDLE
Remarks
RtkReleaseMutex fails if the calling thread does not own the mutex object.
NOTE: Priority Inversion Prevention is not available with the Real-time Kernel API.
Requirements
Minimum Supported Version | RTX64 2013 with Service Pack 1 |
Header | RtkApi.h |
Library | RtkApi.lib |
IRQL | PASSIVE_LEVEL |
See Also: