is QSerialPortInfo::availablePorts() blocking on Windows
-
I have found out, that when I plug USB device into the computer, there is some extra time needed, until the function returns back. That happens only when the device is enumerated. Once done, function returns immediately. Knowing that, I have tried to moved this calls to the different thread and surprisingly it blocks the GUI threads as well. Blocking is about 1-2 seconds.
is that expected behavior? Shall I move it to separate process ?
Thank you, Jan
-
I have found out, that when I plug USB device into the computer, there is some extra time needed, until the function returns back. That happens only when the device is enumerated. Once done, function returns immediately. Knowing that, I have tried to moved this calls to the different thread and surprisingly it blocks the GUI threads as well. Blocking is about 1-2 seconds.
is that expected behavior? Shall I move it to separate process ?
Thank you, Jan
@Jan-Krejsa said in is QSerialPortInfo::availablePorts() blocking on Windows:
I have tried to moved this calls to the different thread and surprisingly it blocks the GUI threads as well.
Can you show how you did it?