About which loop you speak ? Basically, you do not need an additional thread to handle serial port.
About which loop you speak ? Basically, you do not need an additional thread to handle serial port.
Qt Code:
while(ArrayBuffer.size() >= ExpectedPacketLength)To copy to clipboard, switch view to plain text mode
here this is the loop i mention about. When parsing is going on readAll can't get the data while loop was going on. I'm thinking creating another thread and when run it arraybuffer will be parsed simultaneously while reading data from serial port is going on.
Am i thinking wrong ?
Thanks.
What are You doing in "parsing" ?
If signal emiter and receiver are both in this same thread sending signal is like normal function calling. So that a new signal is issued only after the previous service.
Bookmarks