diff options
| author | hathach <[email protected]> | 2020-05-20 13:38:41 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2020-05-20 13:38:41 +0700 |
| commit | 4e8d414bc666d4636efd29e1c9feffd622d055c5 (patch) | |
| tree | 74203937e5438e4e6f4540a27086f418f98caaad /src/osal/osal.h | |
| parent | 76bf96bcb0c12ba241ee4ecc175afb257e550d19 (diff) | |
added osal_queue_empty() API
ported for osal none/freertos/mynewt
Diffstat (limited to 'src/osal/osal.h')
| -rw-r--r-- | src/osal/osal.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/osal/osal.h b/src/osal/osal.h index 0421b3294..3729ad94d 100644 --- a/src/osal/osal.h +++ b/src/osal/osal.h @@ -80,6 +80,7 @@ static inline bool osal_mutex_unlock(osal_mutex_t mutex_hdl); static inline osal_queue_t osal_queue_create(osal_queue_def_t* qdef); static inline bool osal_queue_receive(osal_queue_t const qhdl, void* data); static inline bool osal_queue_send(osal_queue_t const qhdl, void const * data, bool in_isr); +static inline bool osal_queue_empty(osal_queue_t const qhdl); #if 0 // TODO remove subtask related macros later // Sub Task |
