summaryrefslogtreecommitdiffstats
path: root/cpukit/score/include/rtems/score/thread.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2014-05-28 13:38:48 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2014-06-03 08:15:16 +0200
commit304573884356891ccb64fb9b485e82f35ea3f291 (patch)
treee38c27c92ad6d526b6a3ec5ba6d01da6bfe85415 /cpukit/score/include/rtems/score/thread.h
parentscore: Add and use _Thread_Owns_resources() (diff)
downloadrtems-304573884356891ccb64fb9b485e82f35ea3f291.tar.bz2
score: Add resource node to thread control block
Diffstat (limited to 'cpukit/score/include/rtems/score/thread.h')
-rw-r--r--cpukit/score/include/rtems/score/thread.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/cpukit/score/include/rtems/score/thread.h b/cpukit/score/include/rtems/score/thread.h
index 7229113a22..6ac4eccfbc 100644
--- a/cpukit/score/include/rtems/score/thread.h
+++ b/cpukit/score/include/rtems/score/thread.h
@@ -28,6 +28,7 @@
#include <rtems/score/object.h>
#include <rtems/score/percpu.h>
#include <rtems/score/priority.h>
+#include <rtems/score/resource.h>
#include <rtems/score/stack.h>
#include <rtems/score/states.h>
#include <rtems/score/threadq.h>
@@ -472,6 +473,13 @@ struct Thread_Control_struct {
*/
Chain_Control lock_mutex;
#endif
+#if defined(RTEMS_SMP)
+ /**
+ * @brief Resource node to build a dependency tree in case this thread owns
+ * resources or depends on a resource.
+ */
+ Resource_Node Resource_node;
+#endif
/*================= end of common block =================*/
#if defined(RTEMS_MULTIPROCESSING)
/** This field is true if the thread is offered globally */