#ifndef thread_manager_hpp_ #define thread_manager_hpp_ #include #include #include struct Manager { Manager(); ~Manager(); void WriteReport(); void DeployWorker(); // void work(std::unique_lock); bool abort_reporting_; std::mutex report_lock_; std::condition_variable report_condition_; std::thread report_thread_; int data_to_protect_; }; #endif