summaryrefslogtreecommitdiff
path: root/nuttx/sched/work_thread.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/sched/work_thread.c')
-rwxr-xr-xnuttx/sched/work_thread.c8
1 files changed, 7 insertions, 1 deletions
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
****************************************************************************/