82 void exec( FUN && fun )
override { fun(); }
109 static char const *
Name() {
return "ThreadPool0 (fake thread)"; }
111 char const *
name()
const override {
return Name(); }
char const * name() const override
Definition ThreadPool0.hxx:111
void exec(FUN &&fun) override
Executes a given function in the current thread.
Definition ThreadPool0.hxx:82
unsigned thread_count() const override
Returns the number of threads in the pool.
Definition ThreadPool0.hxx:100
static char const * Name()
Returns the name of the thread pool.
Definition ThreadPool0.hxx:109
virtual ~ThreadPool0()=default
Destructor.
ThreadPool0(unsigned n)
Constructs a fake thread pool with a specified number of threads.
Definition ThreadPool0.hxx:67
void wait() override
No-op method to wait for all tasks to complete.
Definition ThreadPool0.hxx:90
ThreadPoolBase(ThreadPoolBase const &)=delete
std::function< void(void)> FUN
Definition ThreadPoolBase.hxx:55
Definition SystemUtils.cc:39