Remove dynamic exceptions
[anna.git] / include / anna / core / mt / Guard.hpp
index 3c99cf8..5c28744 100644 (file)
@@ -38,7 +38,7 @@ public:
     Constructor.
     @param object Sobre el que actuar para iniciar la guarda.
   */
-  Guard(const Safe& object) throw(RuntimeException) : a_whatis(NULL) {
+  Guard(const Safe& object) noexcept(false) : a_whatis(NULL) {
     lock(a_safeObject = const_cast <Safe*>(&object), NULL);
   }
 
@@ -46,14 +46,14 @@ public:
     Constructor.
     @param object Sobre el que actuar para iniciar la guarda.
   */
-  Guard(const Safe* object) throw(RuntimeException);
+  Guard(const Safe* object) noexcept(false);
 
   /**
     Constructor.
     @param object Sobre el que actuar para iniciar la guarda.
     @param whatis Texto que indica la naturaleza del objeto a bloquear.
   */
-  Guard(const Safe& object, const char* whatis) throw(RuntimeException) : a_whatis(whatis) {
+  Guard(const Safe& object, const char* whatis) noexcept(false) : a_whatis(whatis) {
     lock(a_safeObject = const_cast <Safe*>(&object), whatis);
   }
 
@@ -62,25 +62,25 @@ public:
     @param object Sobre el que actuar para iniciar la guarda.
     @param whatis Texto que indica la naturaleza del objeto a bloquear.
   */
-  Guard(const Safe* object, const char* whatis) throw(RuntimeException);
+  Guard(const Safe* object, const char* whatis) noexcept(false);
 
   /**
     Destructor.
     Termina la guarda iniciada con el objeto recibido como parametro en el
     constructor.
   */
-  virtual ~Guard() throw() { deactivate(); }
+  virtual ~Guard() { deactivate(); }
 
   /**
      Desactiva la seccion critica antes de que termine el ambito de actuacion de la misma.
   */
-  void deactivate() throw();
+  void deactivate() ;
 
 private:
   Safe* a_safeObject;
   const char* a_whatis;
 
-  void lock(Safe*, const char* whatis) throw(RuntimeException);
+  void lock(Safe*, const char* whatis) noexcept(false);
 };
 
 } //namespace anna