VC++ Threading
Author |
Message |
cluncky
|
Posted: Tue Feb 28, 2012 5:11 pm Post subject: VC++ Threading |
|
|
In my code I create 5 threads that run the same procedure but with a different parameter. Unless an error occurs or I terminate the thread it will continue on forever. I want to terminate the thread based on input but I first need to execute a certain command within the thread to maintain the integrity of the data. Is there a way to run a few lines of code from the main thread that execute within the child thread before I terminate it? I can't include it within the method being run in the child thread because I require input from the main thread before terminating the child thread.
Any help is appreciated. |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
|
|