This commit is contained in:
2020-09-07 11:15:51 +02:00
parent 5b182469a1
commit f0c576c779
3 changed files with 25 additions and 6 deletions

View File

@ -166,7 +166,17 @@ class DataStreamer : private virtual slsDetectorDefs, public ThreadObject {
int flippedDataX;
/** additional json header */
std::map<std::string, std::string> additionJsonHeader;
std::map<std::string, std::string> additionalJsonHeader;
/** Used by streamer thread to update local copy (reduce number of locks
* during streaming) */
std::atomic<bool>{false};
/** mutex to update json and to read and update local copy */
std::mutex additionalJsonMutex;
/** local copy of additional json header (it can be update on the fly) */
std::map<std::string, std::string> localAdditionalJsonHeader;
/** Aquisition Started flag */
bool startedFlag{nullptr};