diff options
| author | 2021-07-25 11:39:04 -0700 | |
|---|---|---|
| committer | 2021-07-25 11:39:04 -0700 | |
| commit | 98b26b6e126d4775fdf3f773fe8a8ac808a8ff8f (patch) | |
| tree | 816faa96c2c4d291825063433331a8ea4b3d08f1 /src/common/thread_worker.h | |
| parent | Merge pull request #6699 from lat9nq/common-threads (diff) | |
| parent | shader: Support out of bound local memory reads and immediate writes (diff) | |
| download | yuzu-98b26b6e126d4775fdf3f773fe8a8ac808a8ff8f.tar.gz yuzu-98b26b6e126d4775fdf3f773fe8a8ac808a8ff8f.tar.xz yuzu-98b26b6e126d4775fdf3f773fe8a8ac808a8ff8f.zip | |
Merge pull request #6585 from ameerj/hades
Shader Decompiler Rewrite
Diffstat (limited to 'src/common/thread_worker.h')
| -rw-r--r-- | src/common/thread_worker.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/thread_worker.h b/src/common/thread_worker.h index 8272985ff..cd0017726 100644 --- a/src/common/thread_worker.h +++ b/src/common/thread_worker.h | |||
| @@ -5,6 +5,7 @@ | |||
| 5 | #pragma once | 5 | #pragma once |
| 6 | 6 | ||
| 7 | #include <atomic> | 7 | #include <atomic> |
| 8 | #include <condition_variable> | ||
| 8 | #include <functional> | 9 | #include <functional> |
| 9 | #include <mutex> | 10 | #include <mutex> |
| 10 | #include <stop_token> | 11 | #include <stop_token> |
| @@ -39,7 +40,7 @@ public: | |||
| 39 | const auto lambda = [this, func](std::stop_token stop_token) { | 40 | const auto lambda = [this, func](std::stop_token stop_token) { |
| 40 | Common::SetCurrentThreadName(thread_name.c_str()); | 41 | Common::SetCurrentThreadName(thread_name.c_str()); |
| 41 | { | 42 | { |
| 42 | std::conditional_t<with_state, StateType, int> state{func()}; | 43 | [[maybe_unused]] std::conditional_t<with_state, StateType, int> state{func()}; |
| 43 | while (!stop_token.stop_requested()) { | 44 | while (!stop_token.stop_requested()) { |
| 44 | Task task; | 45 | Task task; |
| 45 | { | 46 | { |