Less data race in slsReceiver (#50)

* removed some data races

* non needed mutex

* removed extra include
This commit is contained in:
Erik Fröjdh
2019-08-21 12:02:06 +02:00
committed by Dhanya Thattil
parent b59d69325e
commit b4c207fc4e
6 changed files with 18 additions and 23 deletions

View File

@ -20,7 +20,7 @@
const std::string Listener::TypeName = "Listener";
Listener::Listener(int ind, detectorType dtype, Fifo* f, runStatus* s,
Listener::Listener(int ind, detectorType dtype, Fifo* f, std::atomic<runStatus>* s,
uint32_t* portno, char* e, uint64_t* nf, uint32_t* dr,
int64_t* us, int64_t* as, uint32_t* fpf,
frameDiscardPolicy* fdp, bool* act, bool* depaden, bool* sm) :
@ -476,9 +476,6 @@ uint32_t Listener::ListenToAnImage(char* buf) {
}
//until last packet isHeaderEmpty to account for gotthard short frame, else never entering this loop)
while ( numpackets < pperFrame) {
//listen to new packet