X-Git-Url: https://git.teslayout.com/public/public/public/?p=anna.git;a=blobdiff_plain;f=example%2Fcore%2FthreadManager%2Fmain.cpp;fp=example%2Fcore%2FthreadManager%2Fmain.cpp;h=c41c3563fda0452044ff76af34c7b88396d28859;hp=3abe87b972afcba7c36d3959fcaf63ebc3fc5ac2;hb=5a6cba5fde2b2f538a7515f8293cc0a8d9589dfa;hpb=af9c86ffb0e28d35ad94d99c5f77e41578c972b4 diff --git a/example/core/threadManager/main.cpp b/example/core/threadManager/main.cpp index 3abe87b..c41c356 100644 --- a/example/core/threadManager/main.cpp +++ b/example/core/threadManager/main.cpp @@ -24,9 +24,9 @@ public: MyRunnable () : Runnable () {;} private: - void initialize () throw (RuntimeException); - void run () throw (RuntimeException); - void terminate () throw (); + void initialize () noexcept(false); + void run () noexcept(false); + void terminate () ; anna_complete_runnable (MyRunnable); }; @@ -78,7 +78,7 @@ int main (const int argc, const char** argv) } void MyRunnable::initialize () - throw (RuntimeException) + noexcept(false) { LOGDEBUG ( string msg (asString ()); @@ -88,7 +88,7 @@ void MyRunnable::initialize () } void MyRunnable::run () - throw (RuntimeException) + noexcept(false) { const int delay = rand () % 2000; @@ -103,7 +103,7 @@ void MyRunnable::run () } void MyRunnable::terminate () - throw () + { LOGDEBUG ( string msg (asString ());