Threading Question
-
Ok, i have a process that launches a worker thread to do stuff. The problem I have is that while the worker bee is doing its thing, the main boss thread is coming along and killing an object that the worker bee is using. So, i am wondering is it possible to "stop" or pause the main thread while the worker bee finishes. I know its almost like a thread timing issue, so i am wondering if anyone has advice of this matter. Thanks Sameer:sigh:
-
Ok, i have a process that launches a worker thread to do stuff. The problem I have is that while the worker bee is doing its thing, the main boss thread is coming along and killing an object that the worker bee is using. So, i am wondering is it possible to "stop" or pause the main thread while the worker bee finishes. I know its almost like a thread timing issue, so i am wondering if anyone has advice of this matter. Thanks Sameer:sigh:
You can call the Join method of your worker thread to make the main thread wait until the worker thread terminates.