C
Charles Law
Thanks to everyone for responding.
I have settled on the Queue and AutoResetEvent technique, because I can wait
for an event, with timeout, and no processing is eaten up whilst I wait.
Doing this all on a separate thread allows other things to carry on too.
Using the queue works out very neatly as, for much of the time, I am polling
some remote hardware, but need to inject manual commands as well, as and
when the user selects a command.
Thanks again.
Charles
I have settled on the Queue and AutoResetEvent technique, because I can wait
for an event, with timeout, and no processing is eaten up whilst I wait.
Doing this all on a separate thread allows other things to carry on too.
Using the queue works out very neatly as, for much of the time, I am polling
some remote hardware, but need to inject manual commands as well, as and
when the user selects a command.
Thanks again.
Charles