/// Get name of a Mutex object. /// \note API identical to osMutexGetName static const char *svcRtxMutexGetName (osMutexId_t mutex_id) { os_mutex_t *mutex = osRtxMutexId(mutex_id); // Check parameters if ((mutex == NULL) || (mutex->id != osRtxIdMutex)) { EvrRtxMutexGetName(mutex, NULL); //lint -e{904} "Return statement before end of function" [MISRA Note 1] return NULL; } EvrRtxMutexGetName(mutex, mutex->name); return mutex->name; }
/// Get name of a Mutex object. const char *osMutexGetName (osMutexId_t mutex_id) { if (IS_IRQ_MODE() || IS_IRQ_MASKED()) { EvrRtxMutexGetName(mutex_id, NULL); return NULL; } return __svcMutexGetName(mutex_id); }
/// Get name of a Mutex object. /// \note API identical to osMutexGetName const char *svcRtxMutexGetName (osMutexId_t mutex_id) { os_mutex_t *mutex = (os_mutex_t *)mutex_id; // Check parameters if ((mutex == NULL) || (mutex->id != osRtxIdMutex)) { EvrRtxMutexGetName(mutex, NULL); return NULL; } // Check object state if (mutex->state == osRtxObjectInactive) { EvrRtxMutexGetName(mutex, NULL); return NULL; } EvrRtxMutexGetName(mutex, mutex->name); return mutex->name; }
/// Get name of a Mutex object. const char *osMutexGetName (osMutexId_t mutex_id) { const char *name; if (IsIrqMode() || IsIrqMasked()) { EvrRtxMutexGetName(mutex_id, NULL); name = NULL; } else { name = __svcMutexGetName(mutex_id); } return name; }