tess 1.0.0
Performance-first tile and path simulation substrate
Loading...
Searching...
No Matches
tess::ScopedThreadPhaseExecutorImpl< CaptureExceptions > Class Template Reference

#include <tess/ops/phase_executor.h>

Public Member Functions

 ScopedThreadPhaseExecutorImpl (std::size_t worker_count) noexcept
auto worker_count () const noexcept -> std::size_t
template<typename Fn>
auto for_each_operation (std::size_t first, std::size_t count, Fn &&fn) const -> PlannedExecutionResult

Static Public Attributes

static constexpr bool captures_callback_exceptions = CaptureExceptions

Detailed Description

template<bool CaptureExceptions>
class tess::ScopedThreadPhaseExecutorImpl< CaptureExceptions >

Executor that spawns and joins worker threads for each phase. Callback exceptions cancel unclaimed work and are rethrown after all already-running callbacks have joined. If callbacks throw concurrently, which exception is propagated is unspecified.


The documentation for this class was generated from the following file: