mirror of
https://github.com/wjwwood/serial.git
synced 2026-01-22 19:54:57 +08:00
fixup removal of read_cache_
This commit is contained in:
parent
f1e53d17fb
commit
de704369db
@ -66,7 +66,7 @@ private:
|
|||||||
Serial::Serial (const string &port, uint32_t baudrate, serial::Timeout timeout,
|
Serial::Serial (const string &port, uint32_t baudrate, serial::Timeout timeout,
|
||||||
bytesize_t bytesize, parity_t parity, stopbits_t stopbits,
|
bytesize_t bytesize, parity_t parity, stopbits_t stopbits,
|
||||||
flowcontrol_t flowcontrol)
|
flowcontrol_t flowcontrol)
|
||||||
: read_cache_(""), pimpl_(new SerialImpl (port, baudrate, bytesize, parity,
|
: pimpl_(new SerialImpl (port, baudrate, bytesize, parity,
|
||||||
stopbits, flowcontrol))
|
stopbits, flowcontrol))
|
||||||
{
|
{
|
||||||
pimpl_->setTimeout(timeout);
|
pimpl_->setTimeout(timeout);
|
||||||
@ -354,7 +354,6 @@ void Serial::flush ()
|
|||||||
ScopedReadLock rlock(this->pimpl_);
|
ScopedReadLock rlock(this->pimpl_);
|
||||||
ScopedWriteLock wlock(this->pimpl_);
|
ScopedWriteLock wlock(this->pimpl_);
|
||||||
pimpl_->flush ();
|
pimpl_->flush ();
|
||||||
read_cache_.clear ();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Serial::flushInput ()
|
void Serial::flushInput ()
|
||||||
@ -367,7 +366,6 @@ void Serial::flushOutput ()
|
|||||||
{
|
{
|
||||||
ScopedWriteLock lock(this->pimpl_);
|
ScopedWriteLock lock(this->pimpl_);
|
||||||
pimpl_->flushOutput ();
|
pimpl_->flushOutput ();
|
||||||
read_cache_.clear ();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Serial::sendBreak (int duration)
|
void Serial::sendBreak (int duration)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user