mirror of
https://github.com/g4klx/MMDVM.git
synced 2026-10-15 16:24:11 +02:00
Made Get volatile
This commit is contained in:
+1
-1
@@ -55,7 +55,7 @@ public:
|
|||||||
|
|
||||||
bool put(TDATATYPE item) volatile;
|
bool put(TDATATYPE item) volatile;
|
||||||
|
|
||||||
bool get(TDATATYPE& item);
|
bool get(TDATATYPE& item) volatile;
|
||||||
|
|
||||||
TDATATYPE peek() const;
|
TDATATYPE peek() const;
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -80,7 +80,7 @@ template <typename TDATATYPE> TDATATYPE CRingBuffer<TDATATYPE>::peek() const
|
|||||||
return m_buffer[m_tail];
|
return m_buffer[m_tail];
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename TDATATYPE> bool CRingBuffer<TDATATYPE>::get(TDATATYPE& item)
|
template <typename TDATATYPE> bool CRingBuffer<TDATATYPE>::get(TDATATYPE& item) volatile
|
||||||
{
|
{
|
||||||
if (m_head == m_tail && !m_full)
|
if (m_head == m_tail && !m_full)
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user