Daniel Orozco
10/13/2009 6:23 PM
post39847
|
Questions:
1. What exactly happens when a thread is destroyed?
2. Which QNX document supports the answer to question 1? I'm interested in seeing what else it has.
Contex:
An application process is executed which creates a helper thread. The helper thread executes its routine and then just
returns from that routine. It appears that at least one object utilized by the thread has its destructor invoked. The
object belongs to a pointer member of a struct. That struct is passed to pthread_create().
I was surprised to learn that the object's destructor was invoked. So I'd like to better understand exactly what goes on
during thread destruction.
Thanks for your insights!
|
|
|