mirror of
https://github.com/apache/nuttx.git
synced 2026-05-26 10:46:28 +08:00
sem:remove sem default protocl
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
This commit is contained in:
@@ -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 */
|
||||
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user