aboutsummaryrefslogtreecommitdiffstats
path: root/src/include/threads.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/threads.h')
-rw-r--r--src/include/threads.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/include/threads.h b/src/include/threads.h
index effad525c..e4cd8376e 100644
--- a/src/include/threads.h
+++ b/src/include/threads.h
@@ -41,6 +41,8 @@ struct Thread {
/** The thread priority.*/
t_prio p_prio;
/* End of the fields shared with the ReadyList structure. */
+ /** Thread identifier. */
+ t_tid p_tid;
/** Current thread state.*/
t_tstate p_state;
/** Mode flags.*/
@@ -68,6 +70,8 @@ struct Thread {
/** Message (only while in \p PRSNDMSG state).*/
t_msg p_msg;
#endif
+ /** Generic way to access the union.*/
+ void *p_common;
};
/** Machine dependent processor context.*/
Context p_ctx;