Functions | |
int | mars_mutex_initialize (struct mars_mutex *mutex) |
[host] Initializes a mutex. | |
int | mars_mutex_lock (struct mars_mutex *mutex) |
[host] Locks a mutex. | |
int | mars_mutex_unlock (struct mars_mutex *mutex) |
[host] Unlocks a mutex. |
int mars_mutex_initialize | ( | struct mars_mutex * | mutex | ) |
[host] Initializes a mutex.
This function initializes a mutex instance that can be locked or unlocked from both host and MPU to restrict concurrent accesses.
[in] | mutex | - pointer to mutex instance to initialize |
int mars_mutex_lock | ( | struct mars_mutex * | mutex | ) |
[host] Locks a mutex.
This function locks a mutex and blocks other requests to lock it.
[in] | mutex | - pointer to mutex instance to lock |
int mars_mutex_unlock | ( | struct mars_mutex * | mutex | ) |
[host] Unlocks a mutex.
This function unlocks a previously locked mutex to allow other lock requests.
[in] | mutex | - pointer to mutex instance to unlock |