diff options
Diffstat (limited to 'nuttx/sched/task_setup.c')
-rw-r--r-- | nuttx/sched/task_setup.c | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/nuttx/sched/task_setup.c b/nuttx/sched/task_setup.c index 52596dc7c..6b80d5db0 100644 --- a/nuttx/sched/task_setup.c +++ b/nuttx/sched/task_setup.c @@ -1,7 +1,7 @@ -/************************************************************ +/**************************************************************************** * task_setup.c * - * Copyright (C) 2007 Gregory Nutt. All rights reserved. + * Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without @@ -14,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. - * 3. Neither the name Gregory Nutt nor the names of its contributors may be + * 3. Neither the name NuttX nor the names of its contributors may be * used to endorse or promote products derived from this software * without specific prior written permission. * @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Included Files - ************************************************************/ + ****************************************************************************/ #include <nuttx/config.h> #include <sys/types.h> @@ -46,37 +46,37 @@ #include <nuttx/arch.h> #include "os_internal.h" -/************************************************************ +/**************************************************************************** * Definitions - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Private Type Declarations - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Global Variables - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Private Variables - ************************************************************/ + ****************************************************************************/ /* This is the name for un-named tasks */ static const char g_noname[] = "<noname>"; -/************************************************************ +/**************************************************************************** * Private Function Prototypes - ************************************************************/ + ****************************************************************************/ static STATUS task_assignpid(FAR _TCB* tcb); -/************************************************************ +/**************************************************************************** * Private Functions - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Name: task_assignpid * * Description: @@ -88,13 +88,13 @@ static STATUS task_assignpid(FAR _TCB* tcb); * Return: * OK on success; ERROR on failure (errno is not set) * - ************************************************************/ + ****************************************************************************/ static STATUS task_assignpid(FAR _TCB *tcb) { pid_t next_pid; int hash_ndx; - int tries = 0; + int tries; /* Disable pre-emption. This should provide sufficient protection * for the following operation. @@ -142,11 +142,11 @@ static STATUS task_assignpid(FAR _TCB *tcb) return ERROR; } -/************************************************************ +/**************************************************************************** * Public Functions - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Name: task_schedsetup * * Description: @@ -168,7 +168,7 @@ static STATUS task_assignpid(FAR _TCB *tcb) * This function can only failure is it is unable to assign * a new, unique task ID to the TCB (errno is not set). * - ************************************************************/ + ****************************************************************************/ STATUS task_schedsetup(FAR _TCB *tcb, int priority, start_t start, main_t main) @@ -216,7 +216,7 @@ STATUS task_schedsetup(FAR _TCB *tcb, int priority, return ret; } -/************************************************************ +/**************************************************************************** * Name: task_argsetup * * Description: @@ -240,7 +240,7 @@ STATUS task_schedsetup(FAR _TCB *tcb, int priority, * Return Value: * OK * - ************************************************************/ + ****************************************************************************/ STATUS task_argsetup(FAR _TCB *tcb, const char *name, const char *argv[]) { |