uwb-core DPL (Decawave Porting Layer) mutex wrappers More...
uwb-core DPL (Decawave Porting Layer) mutex wrappers
Definition in file dpl_mutex.h.
#include "os/os_mutex.h"
Go to the source code of this file.
Data Structures | |
struct | dpl_mutex |
dpl mutex wrapper More... | |
Functions | |
static dpl_error_t | dpl_mutex_init (struct dpl_mutex *mu) |
Initializes a mutex object. | |
static dpl_error_t | dpl_mutex_pend (struct dpl_mutex *mu, dpl_time_t timeout) |
Pend (wait) for a mutex. | |
static dpl_error_t | dpl_mutex_release (struct dpl_mutex *mu) |
Release a mutex. | |
|
inlinestatic |
Initializes a mutex object.
[out] | mu | pre-allocated mutex structure, must not be NULL. |
Definition at line 41 of file dpl_mutex.h.
|
inlinestatic |
Pend (wait) for a mutex.
[in] | mu | Pointer to mutex. |
[in] | timeout | Timeout, in os ticks. A timeout of 0 means do not wait if not available. A timeout of OS_TIMEOUT_NEVER means wait forever. |
Definition at line 58 of file dpl_mutex.h.
|
inlinestatic |
Release a mutex.
Definition at line 71 of file dpl_mutex.h.