G
Guest
Hi Guys
There is a couple of threads run on my application.
before I quit the main process, i want to stop all the thread,
and then quit main process.
I have set some flag to stop my thread,
something like
void run()
{
while(!stop){
.....
}
}
but what I want to double-confirm is :
void quit(){
waitfortermation(firstThread);//kind of
waitfortermation(secodThread);//kind of
....
}
Can I implement some function like this?
There is a couple of threads run on my application.
before I quit the main process, i want to stop all the thread,
and then quit main process.
I have set some flag to stop my thread,
something like
void run()
{
while(!stop){
.....
}
}
but what I want to double-confirm is :
void quit(){
waitfortermation(firstThread);//kind of
waitfortermation(secodThread);//kind of
....
}
Can I implement some function like this?