diff --git a/src/lib/data/PersistentStorage.h b/src/lib/data/PersistentStorage.h index 96ffdce0..0410c013 100644 --- a/src/lib/data/PersistentStorage.h +++ b/src/lib/data/PersistentStorage.h @@ -187,8 +187,8 @@ private: SqliteIndexStorage m_sqliteIndexStorage; SqliteBookmarkStorage m_sqliteBookmarkStorage; - mutable std::map m_fileNodeIds; - mutable std::map m_fileNodePaths; + std::map m_fileNodeIds; + std::map m_fileNodePaths; HierarchyCache m_hierarchyCache; }; diff --git a/src/lib/utility/messaging/MessageQueue.cpp b/src/lib/utility/messaging/MessageQueue.cpp index f628e256..1204c3b3 100644 --- a/src/lib/utility/messaging/MessageQueue.cpp +++ b/src/lib/utility/messaging/MessageQueue.cpp @@ -6,7 +6,7 @@ #include "utility/logging/logging.h" #include "utility/messaging/MessageBase.h" #include "utility/messaging/MessageListenerBase.h" -#include "utility/scheduling/TaskGroupSequence.h" +#include "utility/scheduling/TaskGroupParallel.h" #include "utility/scheduling/TaskLambda.h" std::shared_ptr MessageQueue::getInstance() @@ -258,7 +258,7 @@ void MessageQueue::sendMessage(std::shared_ptr message) void MessageQueue::sendMessageAsTask(std::shared_ptr message, bool asNextTask) const { - std::shared_ptr taskGroup = std::make_shared(); + std::shared_ptr taskGroup = std::make_shared(); { std::lock_guard lock(m_listenersMutex); diff --git a/src/lib/utility/scheduling/TaskGroupParallel.cpp b/src/lib/utility/scheduling/TaskGroupParallel.cpp index 73c6b204..befde6ce 100644 --- a/src/lib/utility/scheduling/TaskGroupParallel.cpp +++ b/src/lib/utility/scheduling/TaskGroupParallel.cpp @@ -41,7 +41,7 @@ Task::TaskState TaskGroupParallel::doUpdate(std::shared_ptr blackboa const int SLEEP_TIME_MS = 25; std::this_thread::sleep_for(std::chrono::milliseconds(SLEEP_TIME_MS)); - if (m_tasks.size() != 0 && getActveTaskCount() > 0) + if (m_tasks.size() != 0 && getActiveTaskCount() > 0) { return STATE_RUNNING; } @@ -109,7 +109,7 @@ void TaskGroupParallel::processTaskThreaded(std::shared_ptr taskInfo, } } -int TaskGroupParallel::getActveTaskCount() const +int TaskGroupParallel::getActiveTaskCount() const { std::lock_guard lock(m_activeTaskCountMutex); return m_activeTaskCount; diff --git a/src/lib/utility/scheduling/TaskGroupParallel.h b/src/lib/utility/scheduling/TaskGroupParallel.h index 1f272098..b4ba7036 100644 --- a/src/lib/utility/scheduling/TaskGroupParallel.h +++ b/src/lib/utility/scheduling/TaskGroupParallel.h @@ -36,7 +36,7 @@ private: virtual void doTerminate(); void processTaskThreaded(std::shared_ptr taskInfo, std::shared_ptr blackboard); - int getActveTaskCount() const; + int getActiveTaskCount() const; std::vector> m_tasks; bool m_needsToStartThreads;