net: consistent the net sem wait naming conversion

to prepare the new mutex wait function

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao
2023-01-13 14:51:38 +08:00
committed by Alan Carvalho de Assis
parent 32d0c2ce9d
commit a851ad84c3
57 changed files with 145 additions and 143 deletions
+2 -2
View File
@@ -377,12 +377,12 @@ ssize_t bluetooth_recvmsg(FAR struct socket *psock, FAR struct msghdr *msg,
state.ir_cb->event = bluetooth_recvfrom_eventhandler;
/* Wait for either the receive to complete or for an error/timeout to
* occur. NOTES: (1) net_lockedwait will also terminate if a signal
* occur. NOTES: (1) net_sem_wait will also terminate if a signal
* is received, (2) the network is locked! It will be un-locked while
* the task sleeps and automatically re-locked when the task restarts.
*/
net_lockedwait(&state.ir_sem);
net_sem_wait(&state.ir_sem);
/* Make sure that no further events are processed */
+4 -4
View File
@@ -345,10 +345,10 @@ static ssize_t bluetooth_sendto(FAR struct socket *psock,
netdev_txnotify_dev(&radio->r_dev);
/* Wait for the send to complete or an error to occur.
* net_lockedwait will also terminate if a signal is received.
* net_sem_wait will also terminate if a signal is received.
*/
ret = net_lockedwait(&state.is_sem);
ret = net_sem_wait(&state.is_sem);
/* Make sure that no further events are processed */
@@ -368,8 +368,8 @@ static ssize_t bluetooth_sendto(FAR struct socket *psock,
return state.is_sent;
}
/* If net_lockedwait failed, then we were probably reawakened by a signal.
* In this case, net_lockedwait will have returned negated errno
/* If net_sem_wait failed, then we were probably reawakened by a signal.
* In this case, net_sem_wait will have returned negated errno
* appropriately.
*/