40 using Callback = std::function<void(
const std::string&,
int,
int)>;
44 void report(
const std::string& msg,
int current,
int total)
48 std::lock_guard<std::mutex> lock(_mutex);
49 _callback(msg, current, total);
71 const std::function<
void(
const std::string&,
int,
int)>& progress_callback);
A thread-safe wrapper for the simulation progress callback.
ProgressReporter(Callback cb)
std::function< void(const std::string &, int, int)> Callback
void report(const std::string &msg, int current, int total)
A simple thread pool implementation.
void runEventDrivenSim(World *world, pool::ThreadPool &pool, const std::function< void(const std::string &, int, int)> &progress_callback)
Runs the unified, event-driven radar simulation.