Hi Guys,
I'm doing a typical producer/consumer method to get packets from my serial port and then process the data out of them.
Currently I'm putting that data into yet another queue to be grabbed by a a polled (timer) event in the GUI.
This works well, it checks to see how much data is in the queue and takes it out and displays it.
BUT. Now, I have a communication unit that is really infrequent and I don't want to always be polling it. Is there a way to fire an event from the thread the data received event fires from? (and possibly back to the GUI thread?).
Basically I want to change this from poll (timer) based to event based.
Thanks guys,
Nick
I'm doing a typical producer/consumer method to get packets from my serial port and then process the data out of them.
Currently I'm putting that data into yet another queue to be grabbed by a a polled (timer) event in the GUI.
This works well, it checks to see how much data is in the queue and takes it out and displays it.
BUT. Now, I have a communication unit that is really infrequent and I don't want to always be polling it. Is there a way to fire an event from the thread the data received event fires from? (and possibly back to the GUI thread?).
Basically I want to change this from poll (timer) based to event based.
Thanks guys,
Nick