Skip to content
Snippets Groups Projects
Commit 752e1ab9 authored by Sergi Hernandez's avatar Sergi Hernandez
Browse files

Removed the exception throw in the destructor in case of error.

parent 822796eb
No related branches found
No related tags found
1 merge request!2Added add_lib_to_ld_config.sh and remove_lib_from_ld_config.sh user scripts....
...@@ -74,13 +74,7 @@ void CMutex::exit(void) ...@@ -74,13 +74,7 @@ void CMutex::exit(void)
CMutex::~CMutex() CMutex::~CMutex()
{ {
int error=0;
this->try_enter(); this->try_enter();
this->exit(); this->exit();
if((error=pthread_mutex_destroy(&this->access))!=0) pthread_mutex_destroy(&this->access);
{
/* handle exception */
throw CMutexException(_HERE_,"Impossible to destroy the mutex.\n");
}
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment