Logger::write (Logger::Local7, msg, (file), (line)); \
}
-Guard::Guard(const Safe* object) throw(RuntimeException) :
+Guard::Guard(const Safe* object) noexcept(false) :
a_whatis(NULL) {
if(object == NULL)
throw RuntimeException("Can not lock NULL object", ANNA_FILE_LOCATION);
lock(a_safeObject = const_cast <Safe*>(object), NULL);
}
-Guard::Guard(const Safe* object, const char* whatis) throw(RuntimeException) :
+Guard::Guard(const Safe* object, const char* whatis) noexcept(false) :
a_whatis(whatis) {
if(object == NULL)
throw RuntimeException("Can not lock NULL object", ANNA_FILE_LOCATION);
}
void Guard::deactivate()
-throw() {
+{
if(a_safeObject == NULL)
return;
// Logger::writer tambien usa una Guard.
//--------------------------------------------------------------------------------------------------------------
void Guard::lock(Safe* safe, const char* whatis)
-throw(RuntimeException) {
+noexcept(false) {
trace_local7("Guard::lock", safe, __FILE__, __LINE__);
safe->lock();
}