diff options
author | Mattes D <github@xoft.cz> | 2014-08-27 11:29:57 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-08-27 11:29:57 +0200 |
commit | cde195c1569f22027306adf12e0e3e520d69b9f8 (patch) | |
tree | f5ababf68358785f38268f7b21442b0f7c13790b /Tools/AnvilStats/Processor.h | |
parent | AnvilStats: Added per-height spawner stats. (diff) | |
download | cuberite-cde195c1569f22027306adf12e0e3e520d69b9f8.tar cuberite-cde195c1569f22027306adf12e0e3e520d69b9f8.tar.gz cuberite-cde195c1569f22027306adf12e0e3e520d69b9f8.tar.bz2 cuberite-cde195c1569f22027306adf12e0e3e520d69b9f8.tar.lz cuberite-cde195c1569f22027306adf12e0e3e520d69b9f8.tar.xz cuberite-cde195c1569f22027306adf12e0e3e520d69b9f8.tar.zst cuberite-cde195c1569f22027306adf12e0e3e520d69b9f8.zip |
Diffstat (limited to 'Tools/AnvilStats/Processor.h')
-rw-r--r-- | Tools/AnvilStats/Processor.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/Tools/AnvilStats/Processor.h b/Tools/AnvilStats/Processor.h index 72fea3081..db50ec619 100644 --- a/Tools/AnvilStats/Processor.h +++ b/Tools/AnvilStats/Processor.h @@ -30,6 +30,7 @@ class cProcessor cCallback & m_Callback; cProcessor & m_ParentProcessor; + cEvent m_HasStarted; // cIsThread override: virtual void Execute(void) override; @@ -48,6 +49,9 @@ class cProcessor public: cThread(cCallback & a_Callback, cProcessor & a_ParentProcessor); + + /** Waits until the thread starts processing the callback code. */ + void WaitForStart(void); } ; typedef std::vector<cThread *> cThreads; @@ -65,10 +69,12 @@ protected: AStringList m_FileQueue; cThreads m_Threads; - cEvent m_ThreadsHaveStarted; // This is signalled by each thread to notify the parent thread that it can start waiting for those threads - + + + /** Populates m_FileQueue with Anvil files from the specified folder. */ void PopulateFileQueue(const AString & a_WorldFolder); + /** Returns one filename from m_FileQueue, and removes the name from the queue. */ AString GetOneFileName(void); } ; |