Remove dynamic exceptions
[anna.git] / include / anna / core / mt / Mutex.hpp
index b962bb0..fcbe16e 100644 (file)
@@ -51,9 +51,9 @@ public:
   */
   virtual ~Mutex();
 
-  virtual void lock() throw(RuntimeException);
+  virtual void lock() noexcept(false);
 
-  virtual void unlock() throw();
+  virtual void unlock() ;
 
   /**
    * Devuelve \em true en caso de que haya conseguido bloquear el mutex, o
@@ -61,13 +61,13 @@ public:
    * \return \em true en caso de que haya conseguido bloquear el mutex, o
    * \em false en otro caso.
    */
-  bool trylock() throw(RuntimeException);
+  bool trylock() noexcept(false);
 
   /**
    * Operador de conversión.
    * \return El \em pthread_mutex_t asociado a esta instancia.
    */
-  operator const pthread_mutex_t*() const throw() {
+  operator const pthread_mutex_t*() const {
 #ifdef _MT
     return &a_id;
 #else
@@ -92,8 +92,8 @@ private:
  */
 #define anna_declare_mutex(ClassName) \
    anna::Mutex a_autoMutex; \
-   void lock () throw (anna::RuntimeException) { a_autoMutex.lock (); } \
-   void unlock () throw () { a_autoMutex.unlock (); } \
+   void lock () noexcept(false) { a_autoMutex.lock (); } \
+   void unlock () { a_autoMutex.unlock (); } \
    friend class anna::Guard <ClassName >;
 
 #define anna_access_mutex a_autoMutex