*/
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
* \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
*/
#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