From e2a7981934c8eb64ccd66b1a85e1909438f156a2 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Mon, 31 Aug 2015 08:19:58 +0000 Subject: Fixed bug #640. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8256 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/rt/include/chqueues.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'os/rt') 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. */ -- cgit v1.2.3