mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 08:36:24 +08:00
sched/: Make more naming consistent
Rename various functions per the quidelines of https://cwiki.apache.org/confluence/display/NUTTX/Naming+of+OS+Internal+Functions nxsem_setprotocol -> nxsem_set_protocol nxsem_getprotocol -> nxsem_get_protocol nxsem_getvalue -> nxsem_get_value
This commit is contained in:
committed by
Alan Carvalho de Assis
parent
d938b50969
commit
a569006fd8
@@ -265,7 +265,7 @@ static void pkt_recvfrom_initialize(FAR struct socket *psock, FAR void *buf,
|
||||
*/
|
||||
|
||||
nxsem_init(&pstate->pr_sem, 0, 0); /* Doesn't really fail */
|
||||
nxsem_setprotocol(&pstate->pr_sem, SEM_PRIO_NONE);
|
||||
nxsem_set_protocol(&pstate->pr_sem, SEM_PRIO_NONE);
|
||||
|
||||
pstate->pr_buflen = len;
|
||||
pstate->pr_buffer = buf;
|
||||
|
||||
+1
-1
@@ -204,7 +204,7 @@ ssize_t psock_pkt_send(FAR struct socket *psock, FAR const void *buf,
|
||||
*/
|
||||
|
||||
nxsem_init(&state.snd_sem, 0, 0); /* Doesn't really fail */
|
||||
nxsem_setprotocol(&state.snd_sem, SEM_PRIO_NONE);
|
||||
nxsem_set_protocol(&state.snd_sem, SEM_PRIO_NONE);
|
||||
|
||||
state.snd_sock = psock; /* Socket descriptor to use */
|
||||
state.snd_buflen = len; /* Number of bytes to send */
|
||||
|
||||
Reference in New Issue
Block a user