Skip to content

Commit

Permalink
wip #127 (remotely connected): added note for backend implementations…
Browse files Browse the repository at this point in the history
… to TransferElement::doPostRead()
  • Loading branch information
mhier committed Apr 15, 2020
1 parent ffb6b85 commit 5fd517a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions device_backends/include/TransferElement.h
Original file line number Diff line number Diff line change
Expand Up @@ -452,9 +452,14 @@ namespace ChimeraTK {
*
* No actual communication may be done. Hence, no runtime_error exception may be thrown by this function. Also it
* must be acceptable to call this function while the device is closed or not functional (see isFunctional()) and
* no exception is thrown. */
* no exception is thrown.
*
* Notes for backend implementations:
* - If the flag hasNewData is false, the user buffer must stay unaltered. This is true also if the backend did
* not throw any exception and did not return false in the doReadTransfer...() call. The flag is also controlled
* by the TransferGroup and will be set to false, if an exception has been seen on any other transfer. */
protected:
virtual void doPostRead(TransferType, bool) {}
virtual void doPostRead(TransferType, bool /*hasNewData*/) {}

public:
/** Function called by the TransferFuture before entering a potentially
Expand Down

0 comments on commit 5fd517a

Please sign in to comment.