rxr sls namespace (#457)

* rxr src files and classes (detectordata, ZmqSocket) added to sls namespace

* moving defines inside namespace

* moving defines inside namespace, added helpdacs to namespace

* added namespace to gui

* gui also updated

* removed unnecessary sls:: when already in sls namespace for slsDetectoSoftware, receverSoftware, slsDetectorGui and slsSupportlib
This commit is contained in:
Dhanya Thattil
2022-05-18 11:48:38 +02:00
committed by GitHub
parent fcc7f7aef8
commit 4259363169
88 changed files with 1200 additions and 923 deletions

View File

@@ -10,6 +10,8 @@
#include <iostream>
#include <unistd.h>
namespace sls {
// gettid added in glibc 2.30
#if __GLIBC__ == 2 && __GLIBC_MINOR__ < 30
#include <sys/syscall.h>
@@ -23,7 +25,7 @@ ThreadObject::ThreadObject(int threadIndex, std::string threadType)
try {
threadObject = std::thread(&ThreadObject::RunningThread, this);
} catch (...) {
throw sls::RuntimeError("Could not create " + type +
throw RuntimeError("Could not create " + type +
" thread with index " + std::to_string(index));
}
}
@@ -75,3 +77,5 @@ void ThreadObject::SetThreadPriority(int priority) {
LOG(logINFO) << "Priorities set - " << type << ": " << priority;
}
}
} // namespace sls