|
PatchworkOS
|
Go to the source code of this file.
Typedefs | |
| typedef struct aml_thread | aml_thread_t |
| typedef uint64_t | aml_mutex_id_t |
| Mutex id. | |
Functions | |
| void | aml_mutex_id_init (aml_mutex_id_t *mutex) |
| Create a new mutex and return its id. | |
| void | aml_mutex_id_deinit (aml_mutex_id_t *mutex) |
| Destroy the mutex with the given id. | |
| uint64_t | aml_mutex_acquire (aml_mutex_id_t *mutex, aml_sync_level_t syncLevel, clock_t timeout) |
| Acquire a mutex, blocking until it is available or the timeout is reached. | |
| uint64_t | aml_mutex_release (aml_mutex_id_t *mutex) |
| Release a mutex. | |
| typedef struct aml_thread aml_thread_t |