mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 01:05:54 +08:00
include/nuttx/sched.h: Make naming of all internal names consistent:
1. Add internal scheduler functions should begin with nxsched_, not sched_ 2. Follow the consistent naming patter of https://cwiki.apache.org/confluence/display/NUTTX/Naming+of+OS+Internal+Functions
This commit is contained in:
committed by
Alan Carvalho de Assis
parent
8b289023bf
commit
a4218e2144
@@ -112,7 +112,7 @@ static int nxtask_spawn_exec(FAR pid_t *pidp, FAR const char *name,
|
||||
|
||||
/* Set the default priority to the same priority as this task */
|
||||
|
||||
ret = nxsched_getparam(0, ¶m);
|
||||
ret = nxsched_get_param(0, ¶m);
|
||||
if (ret < 0)
|
||||
{
|
||||
ret = -ret;
|
||||
@@ -366,10 +366,10 @@ int task_spawn(FAR pid_t *pid, FAR const char *name, main_t entry,
|
||||
|
||||
/* Get the priority of this (parent) task */
|
||||
|
||||
ret = nxsched_getparam(0, ¶m);
|
||||
ret = nxsched_get_param(0, ¶m);
|
||||
if (ret < 0)
|
||||
{
|
||||
serr("ERROR: nxsched_getparam failed: %d\n", ret);
|
||||
serr("ERROR: nxsched_get_param failed: %d\n", ret);
|
||||
spawn_semgive(&g_spawn_parmsem);
|
||||
return -ret;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user