Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: blinky_max32630fthr
Mutexes
[OS abstraction layer]
Mutexes are recommended to correctly handle priority inversion, especially if you use LWIP_CORE_LOCKING . More...
Functions | |
| err_t | sys_mutex_new (sys_mutex_t *mutex) |
| Create a new mutex. | |
| void | sys_mutex_lock (sys_mutex_t *mutex) |
| Lock a mutex. | |
| void | sys_mutex_unlock (sys_mutex_t *mutex) |
| Unlock a mutex. | |
| void | sys_mutex_free (sys_mutex_t *mutex) |
| Delete a semaphore. | |
| int | sys_mutex_valid (sys_mutex_t *mutex) |
| Check if a mutex is valid/allocated: return 1 for valid, 0 for invalid. | |
| void | sys_mutex_set_invalid (sys_mutex_t *mutex) |
| Set a mutex invalid so that sys_mutex_valid returns 0. | |
Detailed Description
Mutexes are recommended to correctly handle priority inversion, especially if you use LWIP_CORE_LOCKING .
Function Documentation
| void sys_mutex_free | ( | sys_mutex_t * | mutex ) |
Delete a semaphore.
- Parameters:
-
mutex the mutex to delete
Delete a semaphore.
- Parameters:
-
mutex the mutex to delete
Definition at line 361 of file lwip_sys_arch.c.
| void sys_mutex_lock | ( | sys_mutex_t * | mutex ) |
| err_t sys_mutex_new | ( | sys_mutex_t * | mutex ) |
Create a new mutex.
- Parameters:
-
mutex pointer to the mutex to create
- Returns:
- a new mutex
Definition at line 329 of file lwip_sys_arch.c.
| void sys_mutex_set_invalid | ( | sys_mutex_t * | mutex ) |
Set a mutex invalid so that sys_mutex_valid returns 0.
| void sys_mutex_unlock | ( | sys_mutex_t * | mutex ) |
Unlock a mutex.
- Parameters:
-
mutex the mutex to unlock
Definition at line 354 of file lwip_sys_arch.c.
| int sys_mutex_valid | ( | sys_mutex_t * | mutex ) |
Check if a mutex is valid/allocated: return 1 for valid, 0 for invalid.
Generated on Tue Jul 12 2022 14:21:31 by
1.7.2
