How can I check if a thread is alive?

J

Johan W

Hi!

I want to check if a thread is still alive or if it has been
terminated. I can't find a function call that handles that..

Do you have a simple answer?
Thank's, Johan
 
R

Rolf Magnus

Johan said:
Hi!

I want to check if a thread is still alive or if it has been
terminated. I can't find a function call that handles that..

Do you have a simple answer?
Thank's, Johan

Not in comp.lang.c++, since threads are not defined in standard C++. You
should try comp.programming.threads or a newsgroup about the
compiler/libray/os you use.
 
H

Howard

Johan W said:
Hi!

I want to check if a thread is still alive or if it has been
terminated. I can't find a function call that handles that..

Do you have a simple answer?
Thank's, Johan

Poke it with a stick. If it wiggles, it's alive. :)

(Sorry, couldn't resist. Perhaps I've been smoking too much, umm, you know,
lately?)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,535
Members
45,007
Latest member
obedient dusk

Latest Threads

Top