| 6 | using namespace std::literals; |
| 7 | |
| 8 | class MyMutex : public std::mutex |
| 9 | { |
| 10 | public: |
| 11 | void lock() |
| 12 | { |
| 13 | std::this_thread::sleep_for(1s); |
| 14 | std::mutex::lock(); |
| 15 | } |
| 16 | }; |
| 17 | |
| 18 | void WorkerDeadlock(int id, MyMutex& mut1, MyMutex& mut2) |
| 19 | { |
nothing calls this directly
no outgoing calls
no test coverage detected