[Interest] How to avoid QProcess polling

Joerg Bornemann joerg.bornemann at theqtcompany.com
Wed Apr 8 17:07:16 CEST 2015


On 08-Apr-15 16:48, Thiago Macieira wrote:

>> Thanks for the reply. What I understand now is that while the poll for
>> reading was done away with, the poll for writing still remains. I have
>> created a bugreport at https://bugreports.qt.io/browse/QTBUG-45457 .
>> Hopefully I have explained the problem correctly there.

> Joerg, do you know how to write to a pipe on Windows without polling?

Yes, we should use an asynchronous WriteFile and get notified by an I/O 
completion port (QWinOverlappedIoNotifier).
Currently, a class named QWindowsPipeWriter is used that writes to the 
pipe in a background thread. :-/
See also QTBUG-23902.


BR,

Joerg



More information about the Interest mailing list