summaryrefslogtreecommitdiffstats
path: root/cpukit/score/include/rtems/score/thread.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-03-29 12:06:55 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-03-29 12:06:55 +0200
commit16832b0d9e1f6448a57b6f5f2909cff7ad360706 (patch)
tree772708cb85a765b1a3c5b0437a14027c581b7e28 /cpukit/score/include/rtems/score/thread.h
parentscore: Allow MPCI packet receive function to block (diff)
downloadrtems-16832b0d9e1f6448a57b6f5f2909cff7ad360706.tar.bz2
score: Fix multiprocessing thread proxies
We must provide thread queue heads for the thread wait information for each thread proxy (thread queue heads were introduced by d7665823b208daefb6855591d808e1f3075cedcb). The thread proxy must be allocated before the enqueue operation.
Diffstat (limited to '')
-rw-r--r--cpukit/score/include/rtems/score/thread.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/cpukit/score/include/rtems/score/thread.h b/cpukit/score/include/rtems/score/thread.h
index 4e0d8cf6f9..ffca164cd5 100644
--- a/cpukit/score/include/rtems/score/thread.h
+++ b/cpukit/score/include/rtems/score/thread.h
@@ -417,6 +417,15 @@ typedef struct {
/****************** end of common block ********************/
/** This field is used to manage the set of proxies in the system. */
Chain_Node Active;
+
+ /**
+ * @brief Provide thread queue heads for this thread proxy.
+ *
+ * The actual size of the thread queue heads depends on the application
+ * configuration. Since thread proxies are never destroyed we can use the
+ * same storage place for the thread queue heads.
+ */
+ Thread_queue_Heads Thread_queue_heads[ RTEMS_ZERO_LENGTH_ARRAY ];
} Thread_Proxy_control;
/**