- Modularized C side;
- Added cancellation points inside the threads;