remove queue lock/unlock per review
This commit is contained in:
parent
d8a15aca77
commit
a0fe3a80e7
|
@ -204,11 +204,9 @@ static inline bool osal_queue_send(osal_queue_t qhdl, void const * data, bool in
|
||||||
|
|
||||||
static inline bool osal_queue_empty(osal_queue_t qhdl)
|
static inline bool osal_queue_empty(osal_queue_t qhdl)
|
||||||
{
|
{
|
||||||
_osal_q_lock(qhdl);
|
// Skip queue lock/unlock since this function is primarily called
|
||||||
bool is_empty = tu_fifo_empty(&qhdl->ff);
|
// with interrupt disabled before going into low power mode
|
||||||
_osal_q_unlock(qhdl);
|
return tu_fifo_empty(&qhdl->ff);
|
||||||
|
|
||||||
return is_empty;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
|
Loading…
Reference in New Issue