summaryrefslogtreecommitdiffstats
path: root/src/common/thread_worker.h
diff options
context:
space:
mode:
authorFernandoS27 <fsahmkow27@gmail.com>2021-04-06 04:23:02 +0200
committerReinUsesLisp <reinuseslisp@airmail.cc>2021-07-09 00:03:26 +0200
commita10e112e6436b30c9eb5ca2a82c94f83205bbc34 (patch)
treec7f0a0fdbcd0d9db3e059af4491dac6a74eb6d8f /src/common/thread_worker.h
parentcommon/thread_worker: Use unique function (diff)
downloadyuzu-a10e112e6436b30c9eb5ca2a82c94f83205bbc34.tar
yuzu-a10e112e6436b30c9eb5ca2a82c94f83205bbc34.tar.gz
yuzu-a10e112e6436b30c9eb5ca2a82c94f83205bbc34.tar.bz2
yuzu-a10e112e6436b30c9eb5ca2a82c94f83205bbc34.tar.lz
yuzu-a10e112e6436b30c9eb5ca2a82c94f83205bbc34.tar.xz
yuzu-a10e112e6436b30c9eb5ca2a82c94f83205bbc34.tar.zst
yuzu-a10e112e6436b30c9eb5ca2a82c94f83205bbc34.zip
Diffstat (limited to '')
-rw-r--r--src/common/thread_worker.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/common/thread_worker.h b/src/common/thread_worker.h
index 7e2b04a07..12bbf5fef 100644
--- a/src/common/thread_worker.h
+++ b/src/common/thread_worker.h
@@ -11,6 +11,7 @@
#include <vector>
#include <queue>
+#include "common/common_types.h"
#include "common/unique_function.h"
namespace Common {
@@ -29,6 +30,10 @@ private:
std::condition_variable condition;
std::condition_variable wait_condition;
std::atomic_bool stop{};
+ std::atomic<u64> work_scheduled{};
+ std::atomic<u64> work_done{};
+ std::atomic<u64> workers_stopped{};
+ std::atomic<u64> workers_queued{};
};
} // namespace Common