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);
};
}
void MyRunnable::initialize ()
- throw (RuntimeException)
+ noexcept(false)
{
LOGDEBUG (
string msg (asString ());
}
void MyRunnable::run ()
- throw (RuntimeException)
+ noexcept(false)
{
const int delay = rand () % 2000;
}
void MyRunnable::terminate ()
- throw ()
+
{
LOGDEBUG (
string msg (asString ());