diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2020-05-02 18:21:35 (GMT) |
---|---|---|
committer | Dimitri van Heesch <doxygen@gmail.com> | 2020-05-02 18:21:35 (GMT) |
commit | 03115ed64d916b94c52275fe0b329bd817d4ce94 (patch) | |
tree | a60bbc9a8b6f00e807dcf0b52cb15c3d2b073327 /src/dotrunner.h | |
parent | 1708261ebe54b03c45a4bfe3c1e78581779b2a80 (diff) | |
download | Doxygen-03115ed64d916b94c52275fe0b329bd817d4ce94.zip Doxygen-03115ed64d916b94c52275fe0b329bd817d4ce94.tar.gz Doxygen-03115ed64d916b94c52275fe0b329bd817d4ce94.tar.bz2 |
Refactoring: size_t type conversions and QList in DotManager
Diffstat (limited to 'src/dotrunner.h')
-rw-r--r-- | src/dotrunner.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/dotrunner.h b/src/dotrunner.h index 555ea78..1b54617 100644 --- a/src/dotrunner.h +++ b/src/dotrunner.h @@ -16,7 +16,6 @@ #ifndef DOTRUNNER_H #define DOTRUNNER_H -#include <qglobal.h> //uint #include <string> #include <thread> #include <list> @@ -72,7 +71,7 @@ class DotRunnerQueue public: void enqueue(DotRunner *runner); DotRunner *dequeue(); - uint count() const; + size_t size() const; private: std::condition_variable m_bufferNotEmpty; std::queue<DotRunner *> m_queue; @@ -80,10 +79,11 @@ class DotRunnerQueue }; /** Worker thread to execute a dot run */ -class DotWorkerThread +class DotWorkerThread { public: DotWorkerThread(DotRunnerQueue *queue); + ~DotWorkerThread(); void run(); void start(); bool isRunning() { return m_thread && m_thread->joinable(); } |