Cancellation and C++ Exceptions In NPTL thread cancellation is implemented using exceptions. This does not in general conflict with the mixed use of cancellation and exceptions in C++ programs. This works just fine. Some people, though, write code which doesn't behave as they expect. This is a short example: #include <cstdlib> #include <iostream> #include <pthread.h> static pthread_mutex_t m = PTH
![udrepper](https://cdn-ak-scissors.b.st-hatena.com/image/square/899504df5e99be124e907a6e12ecb77780f76180/height=288;version=1;width=512/https%3A%2F%2Fl-stat.livejournal.net%2Fimg%2Fog_image.jpg)