Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - C++ and pthread_cancel: (3 Items)
   
C++ and pthread_cancel  
Should pthread_cancel on a thread cause the destructor of objects that go out of scope to be called?  That apparently 
doesn't happen on QNX.  It DOES happen on other platforms.  Is there something I need to do (flag setting?) to make this
 work.  Example code is attached.  I expected to get:

"In destructor" after the cancel, but that doesn't happen.  
Attachment: Text test_cancel.cc 1.12 KB
RE: C++ and pthread_cancel  
Is this really about QNX4?

-----Message d'origine-----
De : John Eisenbraun [mailto:community-noreply@qnx.com] 
Envoyé : Tuesday, January 22, 2013 8:34 AM
À : qnx4-community
Objet : C++ and pthread_cancel

Should pthread_cancel on a thread cause the destructor of objects that go out of scope to be called?  That apparently 
doesn't happen on QNX.  It DOES happen on other platforms.  Is there something I need to do (flag setting?) to make this
 work.  Example code is attached.  I expected to get:

"In destructor" after the cancel, but that doesn't happen.  



_______________________________________________

QNX4 Community Support
http://community.qnx.com/sf/go/post98705
To cancel your subscription to this discussion, please e-mail qnx4-community-unsubscribe@community.qnx.com
Re: RE: C++ and pthread_cancel  
Oh, guess I posted in the wrong place.