X-Git-Url: https://git.teslayout.com/public/public/public/?p=anna.git;a=blobdiff_plain;f=source%2Fcore%2Fmt%2FGuard.cpp;fp=source%2Fcore%2Fmt%2FGuard.cpp;h=e3c557565f0a4b6d4cf270c25587fa43ceb00822;hp=259526a3b0dc4d992d732978842595ce9d22afcb;hb=5a6cba5fde2b2f538a7515f8293cc0a8d9589dfa;hpb=af9c86ffb0e28d35ad94d99c5f77e41578c972b4 diff --git a/source/core/mt/Guard.cpp b/source/core/mt/Guard.cpp index 259526a..e3c5575 100644 --- a/source/core/mt/Guard.cpp +++ b/source/core/mt/Guard.cpp @@ -29,7 +29,7 @@ using namespace anna; 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); @@ -37,7 +37,7 @@ Guard::Guard(const Safe* object) throw(RuntimeException) : lock(a_safeObject = const_cast (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); @@ -46,7 +46,7 @@ Guard::Guard(const Safe* object, const char* whatis) throw(RuntimeException) : } void Guard::deactivate() -throw() { +{ if(a_safeObject == NULL) return; @@ -60,7 +60,7 @@ throw() { // 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(); }