-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Check side effects of #116 #127
Comments
List of all
|
I now realise, there are two aspects:
The first aspect might be intrinsically covered if e.g. a delegated postRead() (without do) is called before the action, because that one will throw the exception and hence prevent the action. Still the second aspect need to be covered, unless the implementation never can have AccessMode::wait_for_new_data - but this is usually not the case for decorator-like implementations. There might be additional aspects, also for write operations: Some actions might be necessary despite an exception is thrown in a delegated call. This is not covered by the ticket description. Is there a separate ticket for this? |
…cessor, LNMMathPlugin, LNMMultiplierPlugin, NDRegisterAccessorDecorator, NumericAddressedBackendRegisterAccessor
…Decorator, SubdeviceRegisterAccessor and a test implementation
need to do this also for write (see my last comment). will do this as part of this ticket. |
List of all
|
… back buffer unconditionally To avoid code duplication and ugly try-catch-blocks, the "finally" construct of GSL has been added to cppext and is used here. Hence a new version of cppext is required...
Btw: we can use a "finally" construct to avoid try-catch-blocks and code duplication. I have copied it from https://github.com/microsoft/GSL to cppext (to avoid another dependency). Hence we need a new version of cppext. |
write part also checked and fixed. |
Child of ChimeraTK/ApplicationCore#123
Depends on #116
Until now readLatest() and readNonBlocking() the postRead() function has not been called if there was no new data. This is wrong, there might be stuff to do like exception handling.
In #116 postRead() got a new argument
hasNewData
. This has to be used in each implementation to device if action is required if there is new data.#122 is already dealing with the generation of new version numbers in NumericAddressedLowLevelTransferElement and LNMBackendVariableAccessor.
Examples
The text was updated successfully, but these errors were encountered: