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