This class is a bulk sequence of bytes with MultiThread (MT)-safe read and write operations.
Definition at line 23 of file MT_buffer.h.
#include <mrpt/synch/MT_buffer.h>
Public Member Functions | |
MT_buffer () | |
virtual | ~MT_buffer () |
void | clear () |
size_t | size () |
void | appendData (const vector_byte &d) |
void | readAndClear (vector_byte &d) |
void | read (vector_byte &d) |
Private Attributes | |
vector_byte | m_data |
CCriticalSection | m_cs |
|
inline |
Definition at line 30 of file MT_buffer.h.
|
inlinevirtual |
Definition at line 32 of file MT_buffer.h.
|
inline |
d | Append new data to the stream |
Definition at line 51 of file MT_buffer.h.
References mrpt::synch::CCriticalSection::enter(), mrpt::synch::CCriticalSection::leave(), m_cs, and m_data.
Referenced by mrpt::hwdrivers::CNTRIPClient::private_ntrip_thread(), and mrpt::hwdrivers::CNTRIPClient::sendBackToServer().
|
inline |
Definition at line 35 of file MT_buffer.h.
References mrpt::synch::CCriticalSection::enter(), mrpt::synch::CCriticalSection::leave(), m_cs, and m_data.
Referenced by mrpt::hwdrivers::CNTRIPClient::close(), and mrpt::hwdrivers::CNTRIPClient::private_ntrip_thread().
|
inline |
d | Read the whole buffer. |
Definition at line 66 of file MT_buffer.h.
References mrpt::synch::CCriticalSection::enter(), mrpt::synch::CCriticalSection::leave(), m_cs, and m_data.
|
inline |
d | Read the whole buffer and empty it. |
Definition at line 58 of file MT_buffer.h.
References mrpt::synch::CCriticalSection::enter(), mrpt::synch::CCriticalSection::leave(), m_cs, and m_data.
Referenced by mrpt::hwdrivers::CNTRIPEmitter::doProcess(), and mrpt::hwdrivers::CNTRIPClient::private_ntrip_thread().
|
inline |
Definition at line 42 of file MT_buffer.h.
References mrpt::synch::CCriticalSection::enter(), mrpt::synch::CCriticalSection::leave(), m_cs, and m_data.
Referenced by mrpt::hwdrivers::CNTRIPClient::private_ntrip_thread().
|
private |
Definition at line 27 of file MT_buffer.h.
Referenced by appendData(), clear(), read(), readAndClear(), and size().
|
private |
Definition at line 26 of file MT_buffer.h.
Referenced by appendData(), clear(), read(), readAndClear(), and size().
Page generated by Doxygen 1.8.14 for MRPT 1.5.7 Git: 5902e14cc Wed Apr 24 15:04:01 2019 +0200 at lun oct 28 01:39:17 CET 2019 |