Remove dynamic exceptions
[anna.git] / source / core / mt / Thread.cpp
index 44e93e9..b5558f6 100644 (file)
@@ -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);