Skip to content
Snippets Groups Projects
Commit 0805fa7a authored by Martin Christoph Hierholzer's avatar Martin Christoph Hierholzer
Browse files

make sure the constant value gets passed on to the receivers exactly one time

parent 4e69a22b
No related branches found
No related tags found
No related merge requests found
......@@ -32,7 +32,11 @@ namespace ChimeraTK {
bool readNonBlocking() {
mtca4u::NDRegisterAccessor<UserType>::buffer_2D[0] = _value;
return true;
if(firstRead) {
firstRead = false;
return true;
}
return false;
}
void write() {
......@@ -53,6 +57,8 @@ namespace ChimeraTK {
protected:
std::vector<UserType> _value;
bool firstRead{true};
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment