From 84d420aece99abd932fdd76279bf54a1bda527fe Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Thu, 19 Mar 2026 08:21:22 +0200 Subject: fix: make replay thread termination visible (task 478) --- ioriot/src/replay/rthread.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ioriot/src/replay/rthread.h b/ioriot/src/replay/rthread.h index 9971e49..b66c25f 100644 --- a/ioriot/src/replay/rthread.h +++ b/ioriot/src/replay/rthread.h @@ -44,7 +44,7 @@ typedef struct rthread_s_ { void *worker; /**< The responsible worker object */ long tid; /**< The virtual thread id */ rbuffer_s* tasks; /**< Holds all outstanding tasks */ - bool terminate; /**< True if thread shall terminate */ + volatile bool terminate; /**< True if thread shall terminate */ bool single_threaded; /**< Worker is single threaded or not */ pthread_t pthread; /**< We run the tasks in concurrent pthreads */ #ifdef RTHREAD_DEBUG -- cgit v1.2.3