1
0
forked from fsfw/fsfw

some more sif changes

This commit is contained in:
2020-04-23 20:04:48 +02:00
parent 01195093e3
commit 0ea692a5ea
4 changed files with 18 additions and 18 deletions

View File

@ -12,7 +12,7 @@ BinarySemaphore::BinarySemaphore() {
handle = xSemaphoreCreateBinary();
if(handle == nullptr) {
error << "Binary semaphore creation failure" << std::endl;
sif::error << "Binary semaphore creation failure" << std::endl;
}
xSemaphoreGive(handle);
}
@ -26,7 +26,7 @@ BinarySemaphore::~BinarySemaphore() {
BinarySemaphore::BinarySemaphore(const BinarySemaphore& other) {
handle = xSemaphoreCreateBinary();
if(handle == nullptr) {
error << "Binary semaphore creation failure" << std::endl;
sif::error << "Binary semaphore creation failure" << std::endl;
}
xSemaphoreGive(handle);
}
@ -35,7 +35,7 @@ BinarySemaphore& BinarySemaphore::operator =(const BinarySemaphore& s) {
if(this != &s) {
handle = xSemaphoreCreateBinary();
if(handle == nullptr) {
error << "Binary semaphore creation failure" << std::endl;
sif::error << "Binary semaphore creation failure" << std::endl;
}
xSemaphoreGive(handle);
}
@ -45,7 +45,7 @@ BinarySemaphore& BinarySemaphore::operator =(const BinarySemaphore& s) {
BinarySemaphore::BinarySemaphore(BinarySemaphore&& s) {
handle = xSemaphoreCreateBinary();
if(handle == nullptr) {
error << "Binary semaphore creation failure" << std::endl;
sif::error << "Binary semaphore creation failure" << std::endl;
}
xSemaphoreGive(handle);
}
@ -55,7 +55,7 @@ BinarySemaphore& BinarySemaphore::operator =(
if(&s != this) {
handle = xSemaphoreCreateBinary();
if(handle == nullptr) {
error << "Binary semaphore creation failure" << std::endl;
sif::error << "Binary semaphore creation failure" << std::endl;
}
xSemaphoreGive(handle);
}