diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-01-30 18:49:31 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-01-30 18:49:31 +0000 |
commit | 013eef130f1bc2cab1e3f4022d8498fb98bb29bf (patch) | |
tree | a6455ca9fb6a1aaab3f305b1bf5e937bff704f59 /nuttx/sched/os_internal.h | |
parent | 802ee953dd39863a9b296d8ffbfcc428f2d6fc4f (diff) | |
download | px4-nuttx-013eef130f1bc2cab1e3f4022d8498fb98bb29bf.tar.gz px4-nuttx-013eef130f1bc2cab1e3f4022d8498fb98bb29bf.tar.bz2 px4-nuttx-013eef130f1bc2cab1e3f4022d8498fb98bb29bf.zip |
errno was clobbered by mm_trysemaphore when task exists
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@591 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/sched/os_internal.h')
-rw-r--r-- | nuttx/sched/os_internal.h | 33 |
1 files changed, 17 insertions, 16 deletions
diff --git a/nuttx/sched/os_internal.h b/nuttx/sched/os_internal.h index f1ec07b56..e3dffb207 100644 --- a/nuttx/sched/os_internal.h +++ b/nuttx/sched/os_internal.h @@ -1,7 +1,7 @@ -/************************************************************ - * os_internal.h +/**************************************************************************** + * sched/os_internal.h * - * 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,22 +31,22 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************/ + ****************************************************************************/ #ifndef __OS_INTERNAL_H #define __OS_INTERNAL_H -/************************************************************ +/**************************************************************************** * Included Files - ************************************************************/ + ****************************************************************************/ #include <queue.h> #include <sched.h> #include <nuttx/kmalloc.h> -/************************************************************ +/**************************************************************************** * Definitions - ************************************************************/ + ****************************************************************************/ /* OS CRASH CODES */ @@ -110,9 +110,9 @@ enum os_crash_codes_e #define _SET_TCB_ERRNO(t,e) \ { (t)->errno = (e); } -/************************************************************ +/**************************************************************************** * Public Type Definitions - ************************************************************/ + ****************************************************************************/ /* This structure defines the format of the hash table that * is used to (1) determine if a task ID is unique, and (2) @@ -138,11 +138,11 @@ struct tasklist_s }; typedef struct tasklist_s tasklist_t; -/************************************************************ +/**************************************************************************** * Global Variables - ************************************************************/ + ****************************************************************************/ -/* Declared in os_start.c ***********************************/ +/* Declared in os_start.c ***************************************************/ /* The state of a task is indicated both by the task_state field * of the TCB and by a series of task lists. All of these @@ -234,15 +234,16 @@ extern pidhash_t g_pidhash[CONFIG_MAX_TASKS]; extern const tasklist_t g_tasklisttable[NUM_TASK_STATES]; -/************************************************************ +/**************************************************************************** * Public Function Prototypes - ************************************************************/ + ****************************************************************************/ extern void task_start(void); extern STATUS task_schedsetup(FAR _TCB *tcb, int priority, start_t start, main_t main); extern STATUS task_argsetup(FAR _TCB *tcb, const char *name, const char *argv[]); +extern STATUS task_deletecurrent(void); extern boolean sched_addreadytorun(FAR _TCB *rtrtcb); extern boolean sched_removereadytorun(FAR _TCB *rtrtcb); |