Remove dynamic exceptions
[anna.git] / source / core / mt / Semaphore.cpp
index 9898e86..ea36049 100644 (file)
@@ -29,7 +29,7 @@ Semaphore::~Semaphore() {
 }
 
 void Semaphore::wait()
-throw(RuntimeException) {
+noexcept(false) {
 #ifdef _MT
   int errorCode;
   anna_signal_shield(errorCode, sem_wait(&a_id));
@@ -41,7 +41,7 @@ throw(RuntimeException) {
 }
 
 bool Semaphore::tryWait()
-throw(RuntimeException) {
+noexcept(false) {
   bool result(true);
 #ifdef _MT
   int errorCode;
@@ -58,7 +58,7 @@ throw(RuntimeException) {
 }
 
 void Semaphore::signal()
-throw(RuntimeException) {
+noexcept(false) {
 #ifdef _MT
   int errorCode = sem_post(&a_id);
 
@@ -69,7 +69,7 @@ throw(RuntimeException) {
 }
 
 std::string Semaphore::asString() const
-throw() {
+{
   std::string msg("anna::Semaphone { Id: ");
   msg += functions::asHexString(anna_ptrnumber_cast(&a_id));
   msg += " | Value: ";