mirror of
https://github.com/yuzu-emu/yuzu-android
synced 2025-08-04 13:22:24 -07:00
common/thread_worker: Fix data race
This commit is contained in:
committed by
ReinUsesLisp
parent
bf5b5c1bf4
commit
a10e112e64
@@ -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
|
||||
|
Reference in New Issue
Block a user