23#include "antares/concurrency/concurrency.h"
25#include "ensure_queue_started.h"
27namespace Antares::Solver
29template<
class ContentType>
30void ZipWriter::addEntryFromBufferHelper(
const std::filesystem::path& entryPath,
31 ContentType& entryContent)
33 if (pState != ZipState::can_receive_data)
38 EnsureQueueStartedIfNeeded ensureQueue(
this, pQueueService);
39 pendingTasks_.
add(Concurrency::AddTask(
41 ZipWriteJob<ContentType>(*
this, entryPath.string(), entryContent, pDurationCollector),
42 Yuni::Job::priorityLow));
void add(TaskFuture &&f)
Adds one future to be monitored by this set.
Definition concurrency.cpp:71