mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-14 22:07:12 +02:00
rxr: warnings shouldnt throw exception
This commit is contained in:
@ -108,10 +108,13 @@ void DataStreamer::SetThreadPriority(int priority) {
|
||||
struct sched_param param;
|
||||
param.sched_priority = priority;
|
||||
if (pthread_setschedparam(thread, SCHED_FIFO, ¶m) == EPERM) {
|
||||
throw sls::RuntimeError("Could not prioritize datastreaming threads. "
|
||||
"(No Root Privileges?)");
|
||||
if (!index) {
|
||||
FILE_LOG(logWARNING) << "Could not prioritize datastreaming thread. "
|
||||
"(No Root Privileges?)";
|
||||
}
|
||||
} else {
|
||||
FILE_LOG(logINFO) << "Priorities set - DataStreamer: " << priority;
|
||||
}
|
||||
FILE_LOG(logINFO) << "Streamer Thread Priority set to " << priority;
|
||||
}
|
||||
|
||||
void DataStreamer::SetNumberofDetectors(int* nd) {
|
||||
|
Reference in New Issue
Block a user