diff options
author | Denis Shienkov <denis.shienkov@gmail.com> | 2014-01-10 17:36:35 +0400 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-01-15 15:16:23 +0100 |
commit | 73823bcace62d8e168c81e9b083fcee5a1ba0ccc (patch) | |
tree | a1161518727645708deb604201040d12d730c8ab /src/serialport/qserialport_unix_p.h | |
parent | f404826e695c3affb684f3185d74cd3a5b31efbc (diff) |
Optimize access to the write buffer
Earlier for writing in writeBuffer was used the
QSerialPortPrivate::writeToBuffer() method which contained
a similar code for each platform.
Therefore it is reasonable to delete this method, and to move
its common functionality to the QSerialPort::writeData(). Also
all platform-dependent code of start of data transfer move to
the QSerialPortPrivate::startWriting() method.
Change-Id: I1423723fd69c05df974f8ba597e3dd71d5a797dd
Reviewed-by: Sergey Belyashov <Sergey.Belyashov@gmail.com>
Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
Diffstat (limited to 'src/serialport/qserialport_unix_p.h')
-rw-r--r-- | src/serialport/qserialport_unix_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/serialport/qserialport_unix_p.h b/src/serialport/qserialport_unix_p.h index dba0ac55..7dbb7602 100644 --- a/src/serialport/qserialport_unix_p.h +++ b/src/serialport/qserialport_unix_p.h @@ -111,7 +111,7 @@ public: qint64 systemInputQueueSize () const; qint64 systemOutputQueueSize () const; - qint64 writeToBuffer(const char *data, qint64 maxSize); + void startWriting(); bool waitForReadyRead(int msecs); bool waitForBytesWritten(int msecs); |