mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-13 05:17: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
@ -17,6 +17,7 @@ class File;
|
||||
class DataStreamer;
|
||||
|
||||
#include <vector>
|
||||
#include <atomic>
|
||||
|
||||
class DataProcessor : private virtual slsDetectorDefs, public ThreadObject {
|
||||
|
||||
@ -310,7 +311,7 @@ class DataProcessor : private virtual slsDetectorDefs, public ThreadObject {
|
||||
static const std::string TypeName;
|
||||
|
||||
/** Object running status */
|
||||
bool runningFlag;
|
||||
std::atomic<bool> runningFlag;
|
||||
|
||||
/** GeneralData (Detector Data) object */
|
||||
const GeneralData* generalData;
|
||||
|
Reference in New Issue
Block a user