diff options
Diffstat (limited to 'nuttx/sched')
-rw-r--r-- | nuttx/sched/os_start.c | 6 | ||||
-rwxr-xr-x | nuttx/sched/work_internal.h | 6 | ||||
-rwxr-xr-x | nuttx/sched/work_thread.c | 8 |
3 files changed, 12 insertions, 8 deletions
diff --git a/nuttx/sched/os_start.c b/nuttx/sched/os_start.c index 9b5fd4938..5b5e659e7 100644 --- a/nuttx/sched/os_start.c +++ b/nuttx/sched/os_start.c @@ -163,12 +163,6 @@ volatile pid_t g_lastpid; pidhash_t g_pidhash[CONFIG_MAX_TASKS]; -/* The task ID of the worker thread */ - -#ifdef CONFIG_SCHED_WORKQUEUE -pid_t g_worker; -#endif - /* This is a table of task lists. This table is indexed by * the task state enumeration type (tstate_t) and provides * a pointer to the associated static task list (if there diff --git a/nuttx/sched/work_internal.h b/nuttx/sched/work_internal.h index a25c9615b..56f5e5d56 100755 --- a/nuttx/sched/work_internal.h +++ b/nuttx/sched/work_internal.h @@ -1,7 +1,7 @@ /**************************************************************************** * sched/work_internal.h * - * Copyright (C) 2009-2010 Gregory Nutt. All rights reserved. + * Copyright (C) 2009-2011 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without @@ -81,6 +81,10 @@ extern struct dq_queue_s g_work; +/* The task ID of the worker thread */ + +extern pid_t g_worker; + /**************************************************************************** * Public Function Prototypes ****************************************************************************/ diff --git a/nuttx/sched/work_thread.c b/nuttx/sched/work_thread.c index bbf6a3bb1..49542b532 100755 --- a/nuttx/sched/work_thread.c +++ b/nuttx/sched/work_thread.c @@ -1,7 +1,7 @@ /**************************************************************************** * sched/work_thread.c * - * Copyright (C) 2009-2010 Gregory Nutt. All rights reserved. + * Copyright (C) 2009-2011 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without @@ -71,6 +71,12 @@ struct dq_queue_s g_work; +/* The task ID of the worker thread */ + +#ifdef CONFIG_SCHED_WORKQUEUE +pid_t g_worker; +#endif + /**************************************************************************** * Private Variables ****************************************************************************/ |