From d77f06c1eea6725ed670fa18d8ea4644b8db7e58 Mon Sep 17 00:00:00 2001 From: ZehMatt Date: Tue, 24 Apr 2018 21:35:57 +0200 Subject: [PATCH] Coding style changes. --- src/openrct2/core/JobPool.hpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/openrct2/core/JobPool.hpp b/src/openrct2/core/JobPool.hpp index 9258df87dd..6233315df2 100644 --- a/src/openrct2/core/JobPool.hpp +++ b/src/openrct2/core/JobPool.hpp @@ -52,7 +52,7 @@ public: _processing = 0; for (size_t n = 0; n < std::thread::hardware_concurrency(); n++) { - _threads.emplace_back(&JobPool::processQueue, this); + _threads.emplace_back(&JobPool::ProcessQueue, this); } } @@ -71,7 +71,7 @@ public: } } - void addTask(std::function workFn, + void AddTask(std::function workFn, std::function completionFn) { { @@ -81,12 +81,12 @@ public: } } - void addTask(std::function workFn) + void AddTask(std::function workFn) { - return addTask(workFn, nullptr); + return AddTask(workFn, nullptr); } - void join(std::function reportFn = nullptr) + void Join(std::function reportFn = nullptr) { unique_lock lock(_mutex); while (true) @@ -133,13 +133,13 @@ public: } } - size_t countPending() + size_t CountPending() { return _pending.size(); } private: - void processQueue() + void ProcessQueue() { unique_lock lock(_mutex); do