X-Git-Url: https://git.teslayout.com/public/public/public/?p=anna.git;a=blobdiff_plain;f=source%2Fcore%2Fmt%2FThread.cpp;fp=source%2Fcore%2Fmt%2FThread.cpp;h=b5558f6f13b53950ca837135209c4b6456729734;hp=44e93e9f3ba88ff350dd445cdefe95e44318dd9f;hb=5a6cba5fde2b2f538a7515f8293cc0a8d9589dfa;hpb=af9c86ffb0e28d35ad94d99c5f77e41578c972b4 diff --git a/source/core/mt/Thread.cpp b/source/core/mt/Thread.cpp index 44e93e9..b5558f6 100644 --- a/source/core/mt/Thread.cpp +++ b/source/core/mt/Thread.cpp @@ -37,7 +37,7 @@ Thread::~Thread() { } void Thread::start(Runnable& runnable) -throw(RuntimeException) { +noexcept(false) { if(isRunning() == true) { std::string msg(asString()); msg += " | Already activated"; @@ -68,7 +68,7 @@ throw(RuntimeException) { } void Thread::join() -throw(RuntimeException) { +noexcept(false) { #ifdef _MT int errorCode; const pthread_t self(pthread_self()); @@ -134,7 +134,7 @@ void* Thread::exec(void* arg) { } std::string Thread::asString() const -throw() { +{ std::string result("anna::Thread { Id: "); result += functions::asHexString((int) a_id); result += functions::asString(" | Flags (0x%x): ", a_flags);