Click to See Complete Forum and Search --> : Thread questions


franky
May 15th, 1999, 10:15 AM
I have a class that will do large amount of I/O operation. Some of those functions are declared and implemented as workerthreads, so it wont interrupt normal operation in the user interface. my question is, i want to wait for one of the thread to complete before user make another I/O command plus, without freezing the program for a few seconds, how can i achieve that?


Franky

May 15th, 1999, 07:33 PM
Hi,
You can use WaitForSingleObject() API call to achieve your functionality...
Feel free to contact me if you need more help.. my mail id is pugazh@usa.net