5.1.5.11 SYS_IsMutexLocked Function

Syntax

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

Description

This function checks whether the mutex is locked.

Input Parameters
Parameter NameDescription
mutexThe pointer to a locked mutex
ownerThe pointer to the owner's structure. Memory for this structure can be reused after this operation.
Return Type and Values
  • true – The owner locks the mutex.
  • false – The owner does not lock the mutex.