diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2013-02-03 18:36:46 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2013-02-03 18:36:46 +0000 |
commit | 851412b26fcb20caa1ddee2023ab42220bf3c05f (patch) | |
tree | 359f71a0e385c6ed2afcc040896f7431659c1fee /nuttx/sched | |
parent | 7de0aae2cfe835f4530ba1ca316e1d2fb9bbcfef (diff) | |
download | px4-nuttx-851412b26fcb20caa1ddee2023ab42220bf3c05f.tar.gz px4-nuttx-851412b26fcb20caa1ddee2023ab42220bf3c05f.tar.bz2 px4-nuttx-851412b26fcb20caa1ddee2023ab42220bf3c05f.zip |
Make the names of the execsem consistent; Need defaults for some CONFIG_ settings
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5605 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/sched')
-rw-r--r-- | nuttx/sched/spawn_internal.h | 4 | ||||
-rw-r--r-- | nuttx/sched/task_posixspawn.c | 4 | ||||
-rw-r--r-- | nuttx/sched/task_spawn.c | 8 |
3 files changed, 8 insertions, 8 deletions
diff --git a/nuttx/sched/spawn_internal.h b/nuttx/sched/spawn_internal.h index 6520f3947..89021226a 100644 --- a/nuttx/sched/spawn_internal.h +++ b/nuttx/sched/spawn_internal.h @@ -47,6 +47,10 @@ * Pre-processor Definitions ****************************************************************************/ +#ifndef CONFIG_POSIX_SPAWN_PROXY_STACKSIZE +# define CONFIG_POSIX_SPAWN_PROXY_STACKSIZE 1024 +#endif + /**************************************************************************** * Public Type Definitions ****************************************************************************/ diff --git a/nuttx/sched/task_posixspawn.c b/nuttx/sched/task_posixspawn.c index 1b3afdaf3..7fc90c9fa 100644 --- a/nuttx/sched/task_posixspawn.c +++ b/nuttx/sched/task_posixspawn.c @@ -233,7 +233,7 @@ static int posix_spawn_proxy(int argc, FAR char *argv[]) g_spawn_parms.result = ret; #ifndef CONFIG_SCHED_WAITPID - spawn_semgive(&g_posix_spawn_execsem); + spawn_semgive(&g_spawn_execsem); #endif return OK; } @@ -445,7 +445,7 @@ int posix_spawn(FAR pid_t *pid, FAR const char *path, goto errout_with_lock; } #else - spawn_semtake(&g_posix_spawn_execsem); + spawn_semtake(&g_spawn_execsem); #endif /* Get the result and relinquish our access to the parameter structure */ diff --git a/nuttx/sched/task_spawn.c b/nuttx/sched/task_spawn.c index ec6408df1..2456d777c 100644 --- a/nuttx/sched/task_spawn.c +++ b/nuttx/sched/task_spawn.c @@ -52,10 +52,6 @@ * Pre-processor Definitions ****************************************************************************/ -#ifndef CONFIG_POSIX_SPAWN_PROXY_STACKSIZE -# define CONFIG_POSIX_SPAWN_PROXY_STACKSIZE 1024 -#endif - /**************************************************************************** * Private Types ****************************************************************************/ @@ -240,7 +236,7 @@ static int task_spawn_proxy(int argc, FAR char *argv[]) g_spawn_parms.result = ret; #ifndef CONFIG_SCHED_WAITPID - spawn_semgive(&g_task_spawn_execsem); + spawn_semgive(&g_spawn_execsem); #endif return OK; } @@ -416,7 +412,7 @@ int task_spawn(FAR pid_t *pid, FAR const char *name, main_t entry, goto errout_with_lock; } #else - spawn_semtake(&g_task_spawn_execsem); + spawn_semtake(&g_spawn_execsem); #endif /* Get the result and relinquish our access to the parameter structure */ |