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 be48fcbb3..961ef5b0b 100644
--- a/src/include/threads.h
+++ b/src/include/threads.h
@@ -50,6 +50,10 @@ struct Thread {
#if CH_USE_NESTED_LOCKS
cnt_t p_locks; /**< Number of nested locks.*/
#endif
+#if CH_DBG_THREADS_PROFILING
+ systime_t p_time; /**< Consumed time.
+ @note This field can overflow.*/
+#endif
/*
* The following fields are merged in unions because they are all
* state-specific fields. This trick saves some extra space for each