nano_fifo: Simplify nano_xxx_fifo_get() API family
Changes the nanokernel FIFO API so that the timeout parameter must be specified when invoking nano_isr_fifo_get(), nano_fiber_fifo_get(), nano_task_fifo_get() and nano_fifo_get(). This obsoletes the following APIs: nano_fiber_fifo_get_wait() nano_fiber_fifo_get_wait_timeout() nano_task_fifo_get_wait() nano_task_fifo_get_wait_timeout() nano_fifo_get_wait() nano_fifo_get_wait_timeout() Change-Id: Icbd2909292f1ced0bad8a70a075478536a141ef2 Signed-off-by: Peter Mitsis <peter.mitsis@windriver.com>
This commit is contained in:
parent
a6b20d4c04
commit
cd6db374de
26 changed files with 189 additions and 396 deletions
|
@ -473,7 +473,7 @@ static void conn_tx_fiber(int arg1, int arg2)
|
|||
|
||||
while (conn->state == BT_CONN_CONNECTED) {
|
||||
/* Get next ACL packet for connection */
|
||||
buf = nano_fifo_get_wait(&conn->tx_queue);
|
||||
buf = nano_fifo_get(&conn->tx_queue, TICKS_UNLIMITED);
|
||||
if (conn->state != BT_CONN_CONNECTED) {
|
||||
net_buf_unref(buf);
|
||||
break;
|
||||
|
@ -487,7 +487,7 @@ static void conn_tx_fiber(int arg1, int arg2)
|
|||
BT_DBG("handle %u disconnected - cleaning up", conn->handle);
|
||||
|
||||
/* Give back any allocated buffers */
|
||||
while ((buf = nano_fifo_get(&conn->tx_queue))) {
|
||||
while ((buf = nano_fifo_get(&conn->tx_queue, TICKS_NONE))) {
|
||||
net_buf_unref(buf);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue