aboutsummaryrefslogtreecommitdiffstats
path: root/os/rt/include/chqueues.h
diff options
context:
space:
mode:
Diffstat (limited to 'os/rt/include/chqueues.h')
-rw-r--r--os/rt/include/chqueues.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/os/rt/include/chqueues.h b/os/rt/include/chqueues.h
index 2b4c660f3..e48429d14 100644
--- a/os/rt/include/chqueues.h
+++ b/os/rt/include/chqueues.h
@@ -76,7 +76,7 @@ typedef void (*qnotify_t)(io_queue_t *qp);
*/
struct io_queue {
threads_queue_t q_waiting; /**< @brief Queue of waiting threads. */
- size_t q_counter; /**< @brief Resources counter. */
+ volatile size_t q_counter; /**< @brief Resources counter. */
uint8_t *q_buffer; /**< @brief Pointer to the queue buffer.*/
uint8_t *q_top; /**< @brief Pointer to the first location
after the buffer. */