From e51e635d98fcbd94746a6b11bf8e881ed118a8c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franz=20P=C3=B6schel?= Date: Wed, 4 Sep 2024 16:50:50 +0200 Subject: [PATCH] Add missing future return type --- include/openPMD/LoadStoreChunk.hpp | 2 +- src/LoadStoreChunk.cpp | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/include/openPMD/LoadStoreChunk.hpp b/include/openPMD/LoadStoreChunk.hpp index 18af717c0a..451d6cd0cf 100644 --- a/include/openPMD/LoadStoreChunk.hpp +++ b/include/openPMD/LoadStoreChunk.hpp @@ -203,7 +203,7 @@ namespace core using ConfigureStoreChunkFromBuffer< Ptr_Type>::ConfigureStoreChunkFromBuffer; - auto enqueueLoad() -> void; + auto enqueueLoad() -> auxiliary::DeferredComputation; auto load(EnqueuePolicy) -> void; }; diff --git a/src/LoadStoreChunk.cpp b/src/LoadStoreChunk.cpp index 6d6d57386f..4571cf71e5 100644 --- a/src/LoadStoreChunk.cpp +++ b/src/LoadStoreChunk.cpp @@ -237,7 +237,8 @@ namespace core } template - auto ConfigureLoadStoreFromBuffer::enqueueLoad() -> void + auto ConfigureLoadStoreFromBuffer::enqueueLoad() + -> auxiliary::DeferredComputation { static_assert( std::is_same_v< @@ -249,6 +250,10 @@ namespace core "shared_ptr type."); this->m_rc.loadChunk_impl( std::move(this->m_buffer), this->storeChunkConfig()); + return auxiliary::DeferredComputation( + [rc_lambda = this->m_rc]() mutable -> void { + rc_lambda.seriesFlush(); + }); } template