38 #include "sys/mutex.h" 39 #include "sys/critical.h" 50 if(*mutex == MUTEX_STATUS_UNLOCKED) {
51 *mutex = MUTEX_STATUS_LOCKED;
65 *mutex = MUTEX_STATUS_UNLOCKED;
static void critical_exit(int_master_status_t status)
Exit a critical section and restore the master interrupt.
static int_master_status_t critical_enter()
Enter a critical section.
INT_MASTER_STATUS_DATATYPE int_master_status_t
Master interrupt state representation data type.
void mutex_generic_unlock(volatile mutex_t *mutex)
Unlock a previously acquired mutex.
bool mutex_generic_try_lock(volatile mutex_t *mutex)
Try to lock a mutex.