EchoMap 2026-07-25 6d3977c
An experimental cross-platform digital signal processing application for sound-source localisation.
Loading...
Searching...
No Matches
ITask.cpp
Go to the documentation of this file.
1
9
10#include "ITask.hpp"
11
14
15namespace echomap
16{
17
19 if (stop_token.stop_requested())
20 throw std::runtime_error("Stop requested");
21
22 return execute_work();
23}
24
26{
27 return execute({});
28}
29
30} // namespace echomap
FrequencySpectrum specification.
Task description interface specification.
Audio signal class specification.
WorkerResult operator()()
Alias for execute with a vacuous stop token.
Definition ITask.cpp:25
virtual WorkerResult execute_work()=0
Execute the work and produce a WorkerResult.
WorkerResult execute(const std::stop_token &stop_token)
Execute the work, subject to the given token, and produce a WorkerResult.
Definition ITask.cpp:18
The main EchoMap outermost namespace for all non-exported symbols.
std::variant< ErrorResult, DFTResult, DownsampleResult, LoadProjectResult, LoadSignalFileResult > WorkerResult
Issued once an ITask has completed its Worker cycle.
T stop_requested(T... args)