@@ -114,15 +114,14 @@ namespace core
114
114
115
115
template <typename T>
116
116
auto ConfigureLoadStore::enqueueLoad ()
117
- -> auxiliary::DeferredFuture <std::shared_ptr<T>>
117
+ -> auxiliary::DeferredComputation <std::shared_ptr<T>>
118
118
{
119
119
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
+ });
126
125
}
127
126
128
127
template <typename T>
@@ -144,24 +143,25 @@ namespace core
144
143
{
145
144
template <typename T>
146
145
static auto call (RecordComponent &rc, internal::LoadStoreConfig cfg)
147
- -> auxiliary::DeferredFuture <
146
+ -> auxiliary::DeferredComputation <
148
147
auxiliary::detail::shared_ptr_dataset_types>
149
148
{
150
149
auto res = rc.loadChunkAllocate_impl <T>(std::move (cfg));
151
- return auxiliary::DeferredFuture <
150
+ return auxiliary::DeferredComputation <
152
151
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
+ });
160
160
}
161
161
};
162
162
163
163
auto ConfigureLoadStore::enqueueLoadVariant ()
164
- -> auxiliary::DeferredFuture <
164
+ -> auxiliary::DeferredComputation <
165
165
auxiliary::detail::shared_ptr_dataset_types>
166
166
{
167
167
return m_rc.visit <VisitorEnqueueLoadVariant>(this ->storeChunkConfig ());
@@ -208,14 +208,14 @@ namespace core
208
208
209
209
template <typename Ptr_Type>
210
210
auto ConfigureStoreChunkFromBuffer<Ptr_Type>::enqueueStore()
211
- -> auxiliary::DeferredFuture <void >
211
+ -> auxiliary::DeferredComputation <void >
212
212
{
213
213
this ->m_rc .storeChunk_impl (
214
214
asWriteBuffer (std::move (m_buffer)),
215
215
determineDatatype<auxiliary::IsPointer_t<Ptr_Type>>(),
216
216
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 (); });
219
219
}
220
220
221
221
template <typename Ptr_Type>
@@ -305,7 +305,7 @@ template class compose::ConfigureLoadStore<ConfigureLoadStore>;
305
305
-> DynamicMemoryView<dtype>; \
306
306
template auto core::ConfigureLoadStore::enqueueLoad () \
307
307
/* NOLINTNEXTLINE(bugprone-macro-parentheses) */ \
308
- -> auxiliary::DeferredFuture <std::shared_ptr<dtype>>; \
308
+ -> auxiliary::DeferredComputation <std::shared_ptr<dtype>>; \
309
309
template auto core::ConfigureLoadStore::load (EnqueuePolicy) \
310
310
->std::shared_ptr<dtype>;
311
311
// clang-format on
0 commit comments