8 #ifndef DIAGNOSTIC_CLIENT_LIB_LIB_UTILITY_UTILITY_EXECUTOR_H
9 #define DIAGNOSTIC_CLIENT_LIB_LIB_UTILITY_UTILITY_EXECUTOR_H
11 #include <condition_variable>
21 template<
typename ExecutorHandler>
33 auto func =
queue_.front();
56 queue_.push(std::move(executor_handler));
std::queue< ExecutorHandler > queue_
std::atomic< bool > exit_request_
void AddExecute(ExecutorHandler executor_handler)
std::atomic< bool > running_
std::condition_variable cond_var_
std::mutex exit_mutex_lock_