summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorDenis Shienkov <denis.shienkov@gmail.com>2013-12-30 17:03:42 +0400
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-12-30 14:05:13 +0100
commitcb2dd80a4fce3a190be121c80486c6ba407f5fbf (patch)
tree2f6fe96954c1edbbde5ca18f6f464246ca383c0f /examples
parent25a17db97a8549e5415d23ba1064e4259930ce7f (diff)
downloadqtserialport-cb2dd80a4fce3a190be121c80486c6ba407f5fbf.tar.gz
Reimplement low level data sending
A feature of writing of the buffer by chunks of 512 bytes (by default) was introduced earlier as the developers option in order that it was possible to regulate load of the CPU and quantity of emitted signals of bytesWritten() just change WriteChunkSize value in source code. As shows of the practice, the most optimal mode is writing of whole content of the buffer without division into chunks. It reduces load of CPU (because reduces a quantity of the events triggers) and also simplifies the source code. But potentially there can be negative consequences of writing of whole buffer directly in case of broken driver: * A kernel panic (or BSOD) in case of writing a data large than driver's internal queue. * Can be transferred not all data from the buffer, but only their part. Change-Id: I0fcac1ccf3c752579978b4745771accbf8274267 Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
Diffstat (limited to 'examples')
0 files changed, 0 insertions, 0 deletions