|
FERS 1.0.0
The Flexible Extensible Radar Simulator
|
A thread-safe wrapper for the simulation progress callback. More...
#include "sim_threading.h"
Public Types | |
| using | Callback = std::function< void(const std::string &, int, int)> |
Public Member Functions | |
| ProgressReporter (Callback cb) | |
| void | report (const std::string &msg, int current, int total) |
A thread-safe wrapper for the simulation progress callback.
Allows multiple worker threads to report progress concurrently without race conditions.
Definition at line 37 of file sim_threading.h.
| using core::ProgressReporter::Callback = std::function<void(const std::string&, int, int)> |
Definition at line 40 of file sim_threading.h.
|
explicit |
Definition at line 42 of file sim_threading.h.
| void core::ProgressReporter::report | ( | const std::string & | msg, |
| int | current, | ||
| int | total | ||
| ) |
Definition at line 44 of file sim_threading.h.