diff options
| -rw-r--r-- | ioriot/src/replay/rthread.h | 2 |
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 |
