sem:remove sem default protocl

Signed-off-by: anjiahao <anjiahao@xiaomi.com>
This commit is contained in:
anjiahao
2022-10-18 17:09:22 +08:00
committed by Xiang Xiao
parent 205c8934a3
commit 5724c6b2e4
216 changed files with 2 additions and 1155 deletions
-5
View File
@@ -365,12 +365,7 @@ ssize_t bluetooth_recvmsg(FAR struct socket *psock, FAR struct msghdr *msg,
return ret;
}
/* We will have to wait. This semaphore is used for signaling and,
* hence, should not have priority inheritance enabled.
*/
nxsem_init(&state.ir_sem, 0, 0); /* Doesn't really fail */
nxsem_set_protocol(&state.ir_sem, SEM_PRIO_NONE);
/* Set up the callback in the connection */
-6
View File
@@ -302,13 +302,7 @@ static ssize_t bluetooth_sendto(FAR struct socket *psock,
net_lock();
memset(&state, 0, sizeof(struct bluetooth_sendto_s));
/* This semaphore is used for signaling and, hence, should not have
* priority inheritance enabled.
*/
nxsem_init(&state.is_sem, 0, 0); /* Doesn't really fail */
nxsem_set_protocol(&state.is_sem, SEM_PRIO_NONE);
state.is_sock = psock; /* Socket descriptor to use */
state.is_buflen = len; /* Number of bytes to send */