28 class SingleThreadPoolPrivate;
39 void start(
const std::function<
void(
const std::atomic_bool &isAboutToClose)> &functionToRun);
43 bool tryStart(
const std::function<
void(
const std::atomic_bool &isAboutToClose)> &functionToRun);
50 std::shared_ptr<SingleThreadPoolPrivate>
d_ptr;
void quit()
Sets the 'isAboutToClose' flag to 'true' and waits for the end of running function.
bool tryStart(const std::function< void(const std::atomic_bool &isAboutToClose)> &functionToRun)
If thread isn't available at the time of calling, then this function does nothing and returns false....
void start(const std::function< void(const std::atomic_bool &isAboutToClose)> &functionToRun)
Reserves a thread and uses it to run functionToRun. A running function can check the 'isAboutToClose'...
std::shared_ptr< SingleThreadPoolPrivate > d_ptr
Namespace to encapsulate INDI client, drivers, and mediator classes.