From 0e70316282a3fa36ab2bfcc0daaf7a2210eeb4ae Mon Sep 17 00:00:00 2001
From: fherrero <fherrero@iri.upc.edu>
Date: Fri, 24 Jul 2020 03:16:51 -0700
Subject: [PATCH] Remove exception throw from destructor

---
 src/mutex/mutex.cpp | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/src/mutex/mutex.cpp b/src/mutex/mutex.cpp
index d84eb8d..9a9ca17 100644
--- a/src/mutex/mutex.cpp
+++ b/src/mutex/mutex.cpp
@@ -76,13 +76,7 @@ void CMutex::exit(void)
 
 CMutex::~CMutex()
 {
-  int error=0;
-
-  if((error=pthread_mutex_destroy(&this->access))!=0)
-  {
-    /* handle exception */
-    throw CMutexException(_HERE_,"Impossible to destroy the mutex.\n");
-  }
+  pthread_mutex_destroy(&this->access);
 }
 
 } // End of CMvbluefox3 namespace
-- 
GitLab