David Blume's GitList
Repositories
testcode.git
Code
Commits
Branches
Tags
Search
Tree:
b2afb67
Branches
Tags
c++11
main
start
testcode.git
product
thread_manager.hpp
Experiment with a manager/worker scenario.
David Blume
commited
b2afb67
at 2016-02-07 22:00:00
thread_manager.hpp
Blame
History
Raw
#ifndef thread_manager_hpp_ #define thread_manager_hpp_ #include <mutex> #include <condition_variable> #include <thread> struct Manager { Manager(); ~Manager(); void WriteReport(); void DeployWorker(); // void work(std::unique_lock<x>); bool abort_reporting_; std::mutex report_lock_; std::condition_variable report_condition_; std::thread report_thread_; int data_to_protect_; }; #endif