X-Git-Url: https://git.teslayout.com/public/public/public/?p=anna.git;a=blobdiff_plain;f=source%2Fcore%2Fmt%2FSemaphore.cpp;fp=source%2Fcore%2Fmt%2FSemaphore.cpp;h=ea360498d0923c645b48ffb1a2047389e9cb1c0c;hp=9898e8694e48a965a50db82079903202f26066a2;hb=5a6cba5fde2b2f538a7515f8293cc0a8d9589dfa;hpb=af9c86ffb0e28d35ad94d99c5f77e41578c972b4 diff --git a/source/core/mt/Semaphore.cpp b/source/core/mt/Semaphore.cpp index 9898e86..ea36049 100644 --- a/source/core/mt/Semaphore.cpp +++ b/source/core/mt/Semaphore.cpp @@ -29,7 +29,7 @@ Semaphore::~Semaphore() { } void Semaphore::wait() -throw(RuntimeException) { +noexcept(false) { #ifdef _MT int errorCode; anna_signal_shield(errorCode, sem_wait(&a_id)); @@ -41,7 +41,7 @@ throw(RuntimeException) { } bool Semaphore::tryWait() -throw(RuntimeException) { +noexcept(false) { bool result(true); #ifdef _MT int errorCode; @@ -58,7 +58,7 @@ throw(RuntimeException) { } void Semaphore::signal() -throw(RuntimeException) { +noexcept(false) { #ifdef _MT int errorCode = sem_post(&a_id); @@ -69,7 +69,7 @@ throw(RuntimeException) { } std::string Semaphore::asString() const -throw() { +{ std::string msg("anna::Semaphone { Id: "); msg += functions::asHexString(anna_ptrnumber_cast(&a_id)); msg += " | Value: ";