diff --git a/src/mutex/mutex.cpp b/src/mutex/mutex.cpp index f4dbee4d07306f4895b747a0d6946f7a4e4ee5d3..e49f1f76eeea85d7351814f140112774c003e517 100644 --- a/src/mutex/mutex.cpp +++ b/src/mutex/mutex.cpp @@ -74,13 +74,7 @@ void CMutex::exit(void) CMutex::~CMutex() { - int error=0; - this->try_enter(); this->exit(); - if((error=pthread_mutex_destroy(&this->access))!=0) - { - /* handle exception */ - throw CMutexException(_HERE_,"Impossible to destroy the mutex.\n"); - } + pthread_mutex_destroy(&this->access); }