File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 33* @brief Lock-free ring buffer
44*/
55/*****************************************************************************
6- * Last updated on 2022-02-21
6+ * Last updated on 2022-02-22
77*
88* Q u a n t u m L e a P s
99* ------------------------
@@ -61,8 +61,8 @@ typedef uint8_t RingBufElement;
6161typedef struct {
6262 RingBufElement * buf ; /*!< pointer to the start of the ring buffer */
6363 RingBufCtr end ; /*!< offset of the end of the ring buffer */
64- RingBufCtr head ; /*!< offset to where next byte will be inserted */
65- RingBufCtr tail ; /*!< offset of where next byte will be extracted */
64+ RingBufCtr volatile head ; /*!< offset to where next el. will be inserted */
65+ RingBufCtr volatile tail ; /*!< offset of where next el. will be extracted */
6666} RingBuf ;
6767
6868typedef void (* RingBufHandler )(RingBufElement const el );
You can’t perform that action at this time.
0 commit comments