mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-19 00:07:13 +02:00
Less data race in slsReceiver (#50)
* removed some data races * non needed mutex * removed extra include
This commit is contained in:

committed by
Dhanya Thattil

parent
b59d69325e
commit
b4c207fc4e
@ -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
|
||||
|
Reference in New Issue
Block a user