aboutsummaryrefslogtreecommitdiffstats
path: root/src/chthreads.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/chthreads.c')
-rw-r--r--src/chthreads.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/chthreads.c b/src/chthreads.c
index e91c4c18f..c9d4b1d2c 100644
--- a/src/chthreads.c
+++ b/src/chthreads.c
@@ -37,6 +37,9 @@ Thread *init_thread(Thread *tp, tprio_t prio) {
#if CH_USE_NESTED_LOCKS
tp->p_locks = 0;
#endif
+#if CH_DBG_THREADS_PROFILING
+ tp->p_time = 0;
+#endif
#if CH_USE_MUTEXES
/* realprio is the thread's own, non-inherited, priority */
tp->p_realprio = prio;