aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/include/hal_queues.h
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2015-08-31 08:19:58 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2015-08-31 08:19:58 +0000
commite2a7981934c8eb64ccd66b1a85e1909438f156a2 (patch)
tree867011f7de82a94294ce373d4c67b3a9a628a1c0 /os/hal/include/hal_queues.h
parent159a64f916f73e9f7810056013bbde2452d10ae4 (diff)
downloadChibiOS-e2a7981934c8eb64ccd66b1a85e1909438f156a2.tar.gz
ChibiOS-e2a7981934c8eb64ccd66b1a85e1909438f156a2.tar.bz2
ChibiOS-e2a7981934c8eb64ccd66b1a85e1909438f156a2.zip
Fixed bug #640.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8256 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/include/hal_queues.h')
-rw-r--r--os/hal/include/hal_queues.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/os/hal/include/hal_queues.h b/os/hal/include/hal_queues.h
index 9bbe0924d..c8c664ddc 100644
--- a/os/hal/include/hal_queues.h
+++ b/os/hal/include/hal_queues.h
@@ -63,7 +63,7 @@ typedef void (*qnotify_t)(io_queue_t *qp);
*/
struct io_queue {
threads_queue_t q_waiting; /**< @brief Waiting thread. */
- 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. */