diff options
author | Moritz 'Morty' Strübe <moritz.struebe@redheads.de> | 2020-03-19 18:52:44 (GMT) |
---|---|---|
committer | Moritz 'Morty' Strübe <moritz.struebe@redheads.de> | 2020-03-19 18:52:44 (GMT) |
commit | e8f0640e7e80351de68b40b5114f71fe94dc5fee (patch) | |
tree | 2f1a5b58b3df62ba292c50d32fba18bc4bb6249b /src/dotrunner.h | |
parent | 110cb591c076f84b6dee49b3fa2a1ebc107f7945 (diff) | |
download | Doxygen-e8f0640e7e80351de68b40b5114f71fe94dc5fee.zip Doxygen-e8f0640e7e80351de68b40b5114f71fe94dc5fee.tar.gz Doxygen-e8f0640e7e80351de68b40b5114f71fe94dc5fee.tar.bz2 |
Replace QMutex and condition QWaitCondition with std::
Diffstat (limited to 'src/dotrunner.h')
-rw-r--r-- | src/dotrunner.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/dotrunner.h b/src/dotrunner.h index 48b3dcb..2fa0b61 100644 --- a/src/dotrunner.h +++ b/src/dotrunner.h @@ -18,10 +18,9 @@ #include "qcstring.h" #include "qlist.h" -#include "qwaitcondition.h" #include "qthread.h" #include <queue> -#include "qmutex.h" +#include <mutex> /** Minimal constant string class that is thread safe, once initialized. */ class DotConstString @@ -114,9 +113,9 @@ class DotRunnerQueue DotRunner *dequeue(); uint count() const; private: - QWaitCondition m_bufferNotEmpty; + std::condition_variable m_bufferNotEmpty; std::queue<DotRunner *> m_queue; - mutable QMutex m_mutex; + mutable std::mutex m_mutex; }; /** Worker thread to execute a dot run */ |