WiFi Framework C++ Edition

◆ Acquire() [2/2]

unsigned long Acquire ( const unsigned long Timeout)

Tries to acquire the mutex object during the given time-out interval.

Parameters
TimeoutThe wait timeout value.
Returns
If the mutex acquired with success the returning value is WCL_WAIT_OBJECT_0. If the thread that owned that mutex has exited without releasing the mutex the returning value is WCL_WAIT_ABANDONED. If the time-out elapsed the returning value is WCL_WAIT_TIMEOUT. If the wait failed the returning value is WCL_WAIT_FAILED.
See also
WCL_WAIT_OBJECT_0, WCL_WAIT_ABANDONED, WCL_WAIT_TIMEOUT, WCL_WAIT_FAILED