projects
/
anna.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove dynamic exceptions
[anna.git]
/
example
/
core
/
threadManager
/
main.cpp
diff --git
a/example/core/threadManager/main.cpp
b/example/core/threadManager/main.cpp
index
3abe87b
..
c41c356
100644
(file)
--- a/
example/core/threadManager/main.cpp
+++ b/
example/core/threadManager/main.cpp
@@
-24,9
+24,9
@@
public:
MyRunnable () : Runnable () {;}
private:
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);
};
anna_complete_runnable (MyRunnable);
};
@@
-78,7
+78,7
@@
int main (const int argc, const char** argv)
}
void MyRunnable::initialize ()
}
void MyRunnable::initialize ()
-
throw (RuntimeException
)
+
noexcept(false
)
{
LOGDEBUG (
string msg (asString ());
{
LOGDEBUG (
string msg (asString ());
@@
-88,7
+88,7
@@
void MyRunnable::initialize ()
}
void MyRunnable::run ()
}
void MyRunnable::run ()
-
throw (RuntimeException
)
+
noexcept(false
)
{
const int delay = rand () % 2000;
{
const int delay = rand () % 2000;
@@
-103,7
+103,7
@@
void MyRunnable::run ()
}
void MyRunnable::terminate ()
}
void MyRunnable::terminate ()
- throw ()
+
{
LOGDEBUG (
string msg (asString ());
{
LOGDEBUG (
string msg (asString ());