diff options
author | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-10-02 06:39:57 +0200 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-10-03 06:35:57 +0200 |
commit | 71e19153ef9309dbcdd9ada95068917f0d0dd44c (patch) | |
tree | 2c01dd841d244cddbae7a90f3456299cf2a73a76 /src/core/hle/service/nvflinger/nvflinger.h | |
parent | nvhost_ctrl: Refactor usage of gpu.LockSync() (diff) | |
download | yuzu-71e19153ef9309dbcdd9ada95068917f0d0dd44c.tar yuzu-71e19153ef9309dbcdd9ada95068917f0d0dd44c.tar.gz yuzu-71e19153ef9309dbcdd9ada95068917f0d0dd44c.tar.bz2 yuzu-71e19153ef9309dbcdd9ada95068917f0d0dd44c.tar.lz yuzu-71e19153ef9309dbcdd9ada95068917f0d0dd44c.tar.xz yuzu-71e19153ef9309dbcdd9ada95068917f0d0dd44c.tar.zst yuzu-71e19153ef9309dbcdd9ada95068917f0d0dd44c.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/nvflinger/nvflinger.h | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/core/hle/service/nvflinger/nvflinger.h b/src/core/hle/service/nvflinger/nvflinger.h index 6d84cafb4..7935cf773 100644 --- a/src/core/hle/service/nvflinger/nvflinger.h +++ b/src/core/hle/service/nvflinger/nvflinger.h @@ -4,13 +4,10 @@ #pragma once -#include <atomic> #include <list> #include <memory> #include <mutex> #include <optional> -#include <string> -#include <string_view> #include <thread> #include <vector> @@ -109,9 +106,7 @@ private: /// Creates a layer with the specified layer ID in the desired display. void CreateLayerAtId(VI::Display& display, u64 layer_id); - static void VSyncThread(NVFlinger& nv_flinger); - - void SplitVSync(); + void SplitVSync(std::stop_token stop_token); std::shared_ptr<Nvidia::Module> nvdrv; @@ -133,9 +128,7 @@ private: Core::System& system; - std::unique_ptr<std::thread> vsync_thread; - std::unique_ptr<Common::Event> wait_event; - std::atomic<bool> is_running{}; + std::jthread vsync_thread; KernelHelpers::ServiceContext service_context; }; |