mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-23 15:00:02 +02:00
removed need for pointer
This commit is contained in:
parent
a1a5a20845
commit
095ced153c
@ -42,17 +42,14 @@ int main(int argc, char *argv[]) {
|
|||||||
LOG(logERROR) << "Could not set handler function for SIGPIPE";
|
LOG(logERROR) << "Could not set handler function for SIGPIPE";
|
||||||
}
|
}
|
||||||
|
|
||||||
std::unique_ptr<Receiver> receiver = nullptr;
|
|
||||||
try {
|
try {
|
||||||
receiver = sls::make_unique<Receiver>(argc, argv);
|
Receiver r(argc, argv);
|
||||||
|
LOG(logINFO) << "[ Press \'Ctrl+c\' to exit ]";
|
||||||
|
sem_wait(&semaphore);
|
||||||
|
sem_destroy(&semaphore);
|
||||||
} catch (...) {
|
} catch (...) {
|
||||||
LOG(logINFOBLUE) << "Exiting [ Tid: " << syscall(SYS_gettid) << " ]";
|
//pass
|
||||||
throw;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
LOG(logINFO) << "[ Press \'Ctrl+c\' to exit ]";
|
|
||||||
sem_wait(&semaphore);
|
|
||||||
sem_destroy(&semaphore);
|
|
||||||
LOG(logINFOBLUE) << "Exiting [ Tid: " << syscall(SYS_gettid) << " ]";
|
LOG(logINFOBLUE) << "Exiting [ Tid: " << syscall(SYS_gettid) << " ]";
|
||||||
LOG(logINFO) << "Exiting Receiver";
|
LOG(logINFO) << "Exiting Receiver";
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user