Datapool Updates, fixes and improvements #334

Manually merged
muellerr merged 2 commits from mueller/datapool-update into development 2021-01-12 15:27:15 +01:00
Owner

Also, new RAII conformant reader class to read and commit to datapool variables and datasets.

Also, new RAII conformant reader class to read and commit to datapool variables and datasets.
muellerr added the
feature
label 2020-12-28 17:57:43 +01:00
muellerr added 1 commit 2020-12-28 17:57:43 +01:00
gaisser approved these changes 2021-01-12 13:26:04 +01:00
gaisser left a comment
Owner

A few questions:

setReadCommitProtectionBehaviour is ment to be called by the user in LocalDataPoolManager? Who wants to call that? Who doesn't?

A few questions: setReadCommitProtectionBehaviour is ment to be called by the user in LocalDataPoolManager? Who wants to call that? Who doesn't?
@ -39,3 +41,3 @@
result = readVariable(count);
if(result != RETURN_OK) {
break;
error = result;
Owner

This reports only the last error in the loop. Is any value valid in the set after reading one with an error? We still don't know where the error happened.

This reports only the last error in the loop. Is any value valid in the set after reading one with an error? We still don't know where the error happened.
@ -112,3 +129,3 @@
&& registeredVariables[count]->getDataPoolId()
!= PoolVariableIF::NO_PARAMETER) {
registeredVariables[count]->commitWithoutLock();
if(protectEveryReadCommitCall) {
Owner

"protectEveryReadCommitCall" but this is a write call.

"protectEveryReadCommitCall" but this is a write call.
@ -0,0 +19,4 @@
//! members with commit and read semantics where the lock is only necessary
//! once.
virtual ReturnValue_t readWithoutLock() {
return read(20);
Owner

I don't get that. This looks like a call with a lock with a fixed 20 (ms) timeout.

I don't get that. This looks like a call with a lock with a fixed 20 (ms) timeout.
gaisser added 1 commit 2021-01-12 15:07:07 +01:00
gaisser added this to the ASTP 1.0.0 Local pools milestone 2021-01-12 15:08:27 +01:00
gaisser self-assigned this 2021-01-12 15:08:30 +01:00
muellerr manually merged commit 7a3ba06b01 into development 2021-01-12 15:27:15 +01:00
Sign in to join this conversation.
No description provided.