David Blume's GitList
Repositories
testcode.git
Code
Commits
Branches
Tags
Search
Tree:
9d5b420
Branches
Tags
c++11
main
start
testcode.git
product
thread_manager.hpp
Added a routine to cause a deadlock. See http://wiki.dlma.com/gdb for more.
David Blume
commited
9d5b420
at 2016-10-16 20:24:34
thread_manager.hpp
Blame
History
Raw
#pragma once #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_; };