summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-03-19 08:21:22 +0200
committerPaul Buetow <paul@buetow.org>2026-03-19 08:21:22 +0200
commit84d420aece99abd932fdd76279bf54a1bda527fe (patch)
treeeeb3650b5fce823d5f669fa9073a4ef113df782e
parent74a4fed6f40dc0a1ff03d6947969084537e3af9c (diff)
fix: make replay thread termination visible (task 478)
-rw-r--r--ioriot/src/replay/rthread.h2
1 files changed, 1 insertions, 1 deletions
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