summaryrefslogtreecommitdiff
path: root/nuttx/sched
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-03-12 22:09:14 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-03-12 22:09:14 +0000
commitbb4bde4152e4caf8bb4103d843cea25994ef3c12 (patch)
treefe27d490548897aae21c28e3c63187001fc2ec4e /nuttx/sched
parentec6b2a92400bf21f8b501d76b7cae54ac7a41381 (diff)
downloadpx4-nuttx-bb4bde4152e4caf8bb4103d843cea25994ef3c12.tar.gz
px4-nuttx-bb4bde4152e4caf8bb4103d843cea25994ef3c12.tar.bz2
px4-nuttx-bb4bde4152e4caf8bb4103d843cea25994ef3c12.zip
Prep for 5.19 releasenuttx-5.19
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3373 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/sched')
-rw-r--r--nuttx/sched/os_start.c6
-rwxr-xr-xnuttx/sched/work_internal.h6
-rwxr-xr-xnuttx/sched/work_thread.c8
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
****************************************************************************/