Used the pthread_setcancelstate function to configure where the thread can be cancelled.
Compare changes
- Sergi Hernandez authored
When the communication thread catches an exception, it sets the communication object to the created state before finishing the thread.
+ 9
− 0
@@ -261,6 +261,15 @@ void *CComm::comm_thread(void *param)