April 18, 2024

Dynamic Windows Function [dw_mutex_trylock]

Syntax

int dw_mutex_trylock(HMTX mutex)

Parameters

HMTX mutex: The handle to the mutex returned by dw_mutex_new().

Returns

int DW_ERROR_NONE on success, DW_ERROR_TIMEOUT if it is already locked.

Description

Tries to gain access to the semaphore.

Remarks

This API was introduced in version 2.2.