#ifndef LOG_QUEUE_H #define LOG_QUEUE_H #include #include #include #include #include class log_queue { private: std::thread _worker; std::mutex _mutex; std::condition_variable _cond; std::queue> _queue; private: void worker_func(); public: log_queue(); ~log_queue(); void add_log(const std::function& logFunc); }; #endif /* LOG_QUEUE_H */