nano_sema: Simplify nano_xxx_sem_take() API family
Changes the nanokernel semaphore API so that the timeout parameter must be specified when invoking nano_isr_sem_take(), nano_fiber_sem_take(), nano_task_sem_take() and nano_sem_take(). This obsoletes the following APIs: nano_fiber_sem_take_wait() nano_fiber_sem_take_wait_timeout() nano_task_sem_take_wait() nano_task_sem_take_wait_timeout() nano_sem_take_wait() nano_sem_take_wait_timeout() Change-Id: If7a4bce1bd8ec8d6410d04f3c16ff1922ff0910e Signed-off-by: Peter Mitsis <peter.mitsis@windriver.com>
This commit is contained in:
parent
cd6db374de
commit
54b782a88b
39 changed files with 199 additions and 378 deletions
|
@ -363,7 +363,7 @@ static bool send_frag(struct bt_conn *conn, struct net_buf *buf, uint8_t flags,
|
|||
flags);
|
||||
|
||||
/* Wait until the controller can accept ACL packets */
|
||||
nano_fiber_sem_take_wait(bt_conn_get_pkts(conn));
|
||||
nano_fiber_sem_take(bt_conn_get_pkts(conn), TICKS_UNLIMITED);
|
||||
|
||||
/* Check for disconnection while waiting for pkts_sem */
|
||||
if (conn->state != BT_CONN_CONNECTED) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue