Used the pthread_setcancelstate function to configure where the thread can be cancelled.

Added a mutex unlock in the exception catch in the thread to avoid blocking when an error occurs.
2 jobs for 1.0.2 in 32 seconds (queued for 2 seconds)
latest