SYS_IsMutexLocked Function

C

bool SYS_IsMutexLocked(SYS_Mutex_t *const mutex, SYS_MutexOwner_t *const owner);

Description

Checks whether mutex is locked.

\ingroup sys

Parameters

ParamDescription
mutexthe pointer to a locked mutex.
ownerthe pointer to owner's structure. Memory for this structure can be reused after this operation.

Returns

true - the mutex is locked by the owner,

false - the mutex is not locked by the owner.