R
rein.petersen
Hi All,
I'm accessing a scanner programatically (using WIA automation) and I
want to make the application multithreaded to allow the foreground UI
to be accessible while calls to the scanner occur in the background. Of
course, when I suggest multi-threaded, I really only want the main
thread to control the UI while a second thread controls the scanner. I
don't want multiple threads accessing the scanner - just a single
thread that I can query if it is busy or free.
Is there a design pattern I should consider?
Thanks,
Rein
I'm accessing a scanner programatically (using WIA automation) and I
want to make the application multithreaded to allow the foreground UI
to be accessible while calls to the scanner occur in the background. Of
course, when I suggest multi-threaded, I really only want the main
thread to control the UI while a second thread controls the scanner. I
don't want multiple threads accessing the scanner - just a single
thread that I can query if it is busy or free.
Is there a design pattern I should consider?
Thanks,
Rein