@@ -114,15 +114,14 @@ namespace core
114114
115115 template <typename T>
116116 auto ConfigureLoadStore::enqueueLoad ()
117- -> auxiliary::DeferredFuture <std::shared_ptr<T>>
117+ -> auxiliary::DeferredComputation <std::shared_ptr<T>>
118118 {
119119 auto res = m_rc.loadChunkAllocate_impl <T>(storeChunkConfig ());
120- return auxiliary::DeferredFuture<std::shared_ptr<T>>(
121- std::packaged_task<std::shared_ptr<T>()>(
122- [res_lambda = std::move (res), rc = m_rc]() mutable {
123- rc.seriesFlush ();
124- return res_lambda;
125- }));
120+ return auxiliary::DeferredComputation<std::shared_ptr<T>>(
121+ [res_lambda = std::move (res), rc = m_rc]() mutable {
122+ rc.seriesFlush ();
123+ return res_lambda;
124+ });
126125 }
127126
128127 template <typename T>
@@ -144,24 +143,25 @@ namespace core
144143 {
145144 template <typename T>
146145 static auto call (RecordComponent &rc, internal::LoadStoreConfig cfg)
147- -> auxiliary::DeferredFuture <
146+ -> auxiliary::DeferredComputation <
148147 auxiliary::detail::shared_ptr_dataset_types>
149148 {
150149 auto res = rc.loadChunkAllocate_impl <T>(std::move (cfg));
151- return auxiliary::DeferredFuture <
150+ return auxiliary::DeferredComputation <
152151 auxiliary::detail::shared_ptr_dataset_types>(
153- std::packaged_task<
154- auxiliary::detail::shared_ptr_dataset_types ()>(
155- [res_lambda = std::move (res), rc_lambda = rc]() mutable
156- -> auxiliary::detail::shared_ptr_dataset_types {
157- rc_lambda.seriesFlush ();
158- return res_lambda;
159- }));
152+
153+ [res_lambda = std::move (res), rc_lambda = rc]() mutable
154+ -> auxiliary::detail::shared_ptr_dataset_types {
155+ std::cout << " Flushing Series from Future" << std::endl;
156+ rc_lambda.seriesFlush ();
157+ std::cout << " Flushed Series from Future" << std::endl;
158+ return res_lambda;
159+ });
160160 }
161161 };
162162
163163 auto ConfigureLoadStore::enqueueLoadVariant ()
164- -> auxiliary::DeferredFuture <
164+ -> auxiliary::DeferredComputation <
165165 auxiliary::detail::shared_ptr_dataset_types>
166166 {
167167 return m_rc.visit <VisitorEnqueueLoadVariant>(this ->storeChunkConfig ());
@@ -208,14 +208,14 @@ namespace core
208208
209209 template <typename Ptr_Type>
210210 auto ConfigureStoreChunkFromBuffer<Ptr_Type>::enqueueStore()
211- -> auxiliary::DeferredFuture <void >
211+ -> auxiliary::DeferredComputation <void >
212212 {
213213 this ->m_rc .storeChunk_impl (
214214 asWriteBuffer (std::move (m_buffer)),
215215 determineDatatype<auxiliary::IsPointer_t<Ptr_Type>>(),
216216 storeChunkConfig ());
217- return auxiliary::DeferredFuture <void >(std::packaged_task< void () >(
218- [rc_lambda = m_rc]() mutable -> void { rc_lambda.seriesFlush (); })) ;
217+ return auxiliary::DeferredComputation <void >(
218+ [rc_lambda = m_rc]() mutable -> void { rc_lambda.seriesFlush (); });
219219 }
220220
221221 template <typename Ptr_Type>
@@ -305,7 +305,7 @@ template class compose::ConfigureLoadStore<ConfigureLoadStore>;
305305 -> DynamicMemoryView<dtype>; \
306306 template auto core::ConfigureLoadStore::enqueueLoad () \
307307 /* NOLINTNEXTLINE(bugprone-macro-parentheses) */ \
308- -> auxiliary::DeferredFuture <std::shared_ptr<dtype>>; \
308+ -> auxiliary::DeferredComputation <std::shared_ptr<dtype>>; \
309309 template auto core::ConfigureLoadStore::load (EnqueuePolicy) \
310310 ->std::shared_ptr<dtype>;
311311// clang-format on
0 commit comments