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:
Gregory Nutt
2020-05-17 07:56:21 -06:00
committed by Alan Carvalho de Assis
parent d938b50969
commit a569006fd8
192 changed files with 288 additions and 288 deletions
+1 -1
View File
@@ -105,7 +105,7 @@ int nxsem_post(FAR sem_t *sem)
* not possible to know which thread/holder should be released.
*
* For this reason, it is recommended that priority inheritance be
* disabled via nxsem_setprotocol(SEM_PRIO_NONE) when the semaphore is
* disabled via nxsem_set_protocol(SEM_PRIO_NONE) when the semaphore is
* initialized if the semaphore is to used for signaling purposes.
*/
+4 -4
View File
@@ -51,7 +51,7 @@
****************************************************************************/
/****************************************************************************
* Name: nxsem_setprotocol
* Name: nxsem_set_protocol
*
* Description:
* Set semaphore protocol attribute.
@@ -71,7 +71,7 @@
* becomes *permanently* a holder of the semaphore and may have its
* priority boosted when any other task tries to acquire the semaphore.
*
* The fix is to call nxsem_setprotocol(SEM_PRIO_NONE) immediately after
* The fix is to call nxsem_set_protocol(SEM_PRIO_NONE) immediately after
* the sem_init() call so that there will be no priority inheritance
* operations on this semaphore.
*
@@ -87,7 +87,7 @@
*
****************************************************************************/
int nxsem_setprotocol(FAR sem_t *sem, int protocol)
int nxsem_set_protocol(FAR sem_t *sem, int protocol)
{
DEBUGASSERT(sem != NULL);
@@ -165,7 +165,7 @@ int sem_setprotocol(FAR sem_t *sem, int protocol)
{
int ret;
ret = nxsem_setprotocol(sem, protocol);
ret = nxsem_set_protocol(sem, protocol);
if (ret < 0)
{
set_errno(-ret);