Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
BroadcastCommunity.qnx.com will be offline from May 31 6:00pm until June 2 12:00AM for upcoming system upgrades. For more information please go to https://community.qnx.com/sf/discussion/do/listPosts/projects.bazaar/discussion.bazaar.topc28418
Forum Topic - C++ and pthread_cancel: Page 1 of 3 (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