diff options
author | Andy Shaw <andy.shaw@qt.io> | 2017-07-11 09:07:51 +0200 |
---|---|---|
committer | Andy Shaw <andy.shaw@qt.io> | 2018-01-24 05:54:31 +0000 |
commit | 1d9547c9a4b58cadc1105521df27e40ff5945259 (patch) | |
tree | 147eeb7d7b903d49f94eb96df0ffed3314fa3fff /qmake/library/ioutils.h | |
parent | a69a0e8254b79c62fad7372e8c14f66d440ad744 (diff) |
Don't indefinitely wait for data if it was able to read some data
Passing -1 to waitForReadyRead() may cause it to wait for some time
but the data retrieved may be enough for processing. So if 0 is passed
from read, indicating that there is potentially more to come, then
it will do a waitForReadyRead() then for more data to come.
Change-Id: I75f270d1f124ecc12b18512cc20fb11f7a88f02e
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'qmake/library/ioutils.h')
0 files changed, 0 insertions, 0 deletions