This commit is contained in:
Klaus Basan
2019-01-16 19:45:13 +01:00
committed by Mat Sutcliffe
parent 13c67e4838
commit 25df1921eb
9 changed files with 14 additions and 13 deletions

View File

@@ -31,7 +31,7 @@ namespace BlackCore
{
const CLogCategoryList &CBackgroundDataUpdater::getLogCategories()
{
static const BlackMisc::CLogCategoryList cats { BlackMisc::CLogCategory::worker() };
static const CLogCategoryList cats({ CLogCategory::worker(), CLogCategory::modelSetCache(), CLogCategory::modelCache() });
return cats;
}

View File

@@ -14,8 +14,8 @@
#include "blackcore/data/dbcaches.h"
#include "blackcore/blackcoreexport.h"
#include "blackmisc/network/entityflags.h"
#include "blackmisc/simulation/data/modelcaches.h"
#include "blackmisc/network/entityflags.h"
#include "blackmisc/statusmessagelist.h"
#include "blackmisc/worker.h"
@@ -48,7 +48,7 @@ namespace BlackCore
void consolidating(bool running);
private:
mutable QReadWriteLock m_lockMsg; //!< lock snapshot
mutable QReadWriteLock m_lockMsg; //!< lock history messages
std::atomic_int m_cycle { 0 }; //!< cycle
std::atomic_bool m_inWork { false }; //!< indicates a running update
std::atomic_bool m_updatePublishedModels { true }; //!< update when models have been updated