diff options
| author | bunnei <bunneidev@gmail.com> | 2023-06-05 17:15:19 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-05 17:15:19 -0700 |
| commit | db7b106f1d9d559dadfd9ed070a8b0986609ec57 (patch) | |
| tree | 164b97da4aa0f7db44ac1a9bb6f1068aa1114465 /src/audio_core/renderer/adsp/audio_renderer.h | |
| parent | e6fce1cbbdd5ffb95c11b1fb3c43e8bdbe16ec28 (diff) | |
| parent | e96a3a171355323453bf0689b80e9b2279750495 (diff) | |
Merge pull request #10611 from liamwhite/audio-deadlock
audio_renderer: resolve adsp thread deadlock shutdown
Diffstat (limited to 'src/audio_core/renderer/adsp/audio_renderer.h')
| -rw-r--r-- | src/audio_core/renderer/adsp/audio_renderer.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/audio_core/renderer/adsp/audio_renderer.h b/src/audio_core/renderer/adsp/audio_renderer.h index 85ce6a269..88e558183 100644 --- a/src/audio_core/renderer/adsp/audio_renderer.h +++ b/src/audio_core/renderer/adsp/audio_renderer.h @@ -177,7 +177,7 @@ private: /** * Main AudioRenderer thread, responsible for processing the command lists. */ - void ThreadFunc(); + void ThreadFunc(std::stop_token stop_token); /** * Creates the streams which will receive the processed samples. @@ -187,7 +187,7 @@ private: /// Core system Core::System& system; /// Main thread - std::thread thread{}; + std::jthread thread{}; /// The current state std::atomic<bool> running{}; /// The active mailbox |
