From 9204ed1558f8f102f298a813dcaab0abb850576f Mon Sep 17 00:00:00 2001 From: Martin Hierholzer <martin.hierholzer@desy.de> Date: Thu, 9 Feb 2017 10:25:57 +0100 Subject: [PATCH] fixed blocking read transfer for the constant accessor: should only return on first read and then block forever --- include/ConstantAccessor.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/ConstantAccessor.h b/include/ConstantAccessor.h index ebbeb2f8..be44121f 100644 --- a/include/ConstantAccessor.h +++ b/include/ConstantAccessor.h @@ -27,6 +27,12 @@ namespace ChimeraTK { } void doReadTransfer() override { + if(firstRead) { + firstRead = false; + return; + } + // block forever + boost::promise<void>().get_future().wait(); } bool doReadTransferNonBlocking() override { -- GitLab