diff options
| author | 2021-09-15 20:32:54 -0400 | |
|---|---|---|
| committer | 2021-09-15 20:49:07 -0400 | |
| commit | 877cd60b00a3f827062fdaff93183b52174ec134 (patch) | |
| tree | ddcd7153dade611b9200c1867cfa643719696e25 /src/video_core/gpu.cpp | |
| parent | threadsafe_queue: Add std::stop_token overload to PopWait (diff) | |
| download | yuzu-877cd60b00a3f827062fdaff93183b52174ec134.tar.gz yuzu-877cd60b00a3f827062fdaff93183b52174ec134.tar.xz yuzu-877cd60b00a3f827062fdaff93183b52174ec134.zip | |
gpu: Use std::jthread for async gpu thread
Diffstat (limited to 'src/video_core/gpu.cpp')
| -rw-r--r-- | src/video_core/gpu.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/video_core/gpu.cpp b/src/video_core/gpu.cpp index ff024f530..2ae3639b5 100644 --- a/src/video_core/gpu.cpp +++ b/src/video_core/gpu.cpp | |||
| @@ -531,14 +531,6 @@ void GPU::TriggerCpuInterrupt(const u32 syncpoint_id, const u32 value) const { | |||
| 531 | interrupt_manager.GPUInterruptSyncpt(syncpoint_id, value); | 531 | interrupt_manager.GPUInterruptSyncpt(syncpoint_id, value); |
| 532 | } | 532 | } |
| 533 | 533 | ||
| 534 | void GPU::ShutDown() { | ||
| 535 | // Signal that threads should no longer block on syncpoint fences | ||
| 536 | shutting_down.store(true, std::memory_order_relaxed); | ||
| 537 | sync_cv.notify_all(); | ||
| 538 | |||
| 539 | gpu_thread.ShutDown(); | ||
| 540 | } | ||
| 541 | |||
| 542 | void GPU::OnCommandListEnd() { | 534 | void GPU::OnCommandListEnd() { |
| 543 | if (is_async) { | 535 | if (is_async) { |
| 544 | // This command only applies to asynchronous GPU mode | 536 | // This command only applies to asynchronous GPU mode |