diff options
| author | 2023-08-26 17:12:05 -0400 | |
|---|---|---|
| committer | 2023-08-26 17:12:05 -0400 | |
| commit | b7523d6fa77a963409d5fbfec4879c22a6ef9f3f (patch) | |
| tree | d9b7acc75eae4c216aeb39a3be6f3418fe3c894d /src/core/core.cpp | |
| parent | Merge pull request #11377 from BenjaminHalko/reverse-slider-input (diff) | |
| download | yuzu-b7523d6fa77a963409d5fbfec4879c22a6ef9f3f.tar.gz yuzu-b7523d6fa77a963409d5fbfec4879c22a6ef9f3f.tar.xz yuzu-b7523d6fa77a963409d5fbfec4879c22a6ef9f3f.zip | |
am: shorten shutdown timeout when lock is not held
Diffstat (limited to 'src/core/core.cpp')
| -rw-r--r-- | src/core/core.cpp | 25 |
1 files changed, 18 insertions, 7 deletions
diff --git a/src/core/core.cpp b/src/core/core.cpp index 2f67e60a9..e95ae80da 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp | |||
| @@ -273,7 +273,8 @@ struct System::Impl { | |||
| 273 | time_manager.Initialize(); | 273 | time_manager.Initialize(); |
| 274 | 274 | ||
| 275 | is_powered_on = true; | 275 | is_powered_on = true; |
| 276 | exit_lock = false; | 276 | exit_locked = false; |
| 277 | exit_requested = false; | ||
| 277 | 278 | ||
| 278 | microprofile_cpu[0] = MICROPROFILE_TOKEN(ARM_CPU0); | 279 | microprofile_cpu[0] = MICROPROFILE_TOKEN(ARM_CPU0); |
| 279 | microprofile_cpu[1] = MICROPROFILE_TOKEN(ARM_CPU1); | 280 | microprofile_cpu[1] = MICROPROFILE_TOKEN(ARM_CPU1); |
| @@ -398,7 +399,8 @@ struct System::Impl { | |||
| 398 | } | 399 | } |
| 399 | 400 | ||
| 400 | is_powered_on = false; | 401 | is_powered_on = false; |
| 401 | exit_lock = false; | 402 | exit_locked = false; |
| 403 | exit_requested = false; | ||
| 402 | 404 | ||
| 403 | if (gpu_core != nullptr) { | 405 | if (gpu_core != nullptr) { |
| 404 | gpu_core->NotifyShutdown(); | 406 | gpu_core->NotifyShutdown(); |
| @@ -507,7 +509,8 @@ struct System::Impl { | |||
| 507 | 509 | ||
| 508 | CpuManager cpu_manager; | 510 | CpuManager cpu_manager; |
| 509 | std::atomic_bool is_powered_on{}; | 511 | std::atomic_bool is_powered_on{}; |
| 510 | bool exit_lock = false; | 512 | bool exit_locked = false; |
| 513 | bool exit_requested = false; | ||
| 511 | 514 | ||
| 512 | bool nvdec_active{}; | 515 | bool nvdec_active{}; |
| 513 | 516 | ||
| @@ -943,12 +946,20 @@ const Service::Time::TimeManager& System::GetTimeManager() const { | |||
| 943 | return impl->time_manager; | 946 | return impl->time_manager; |
| 944 | } | 947 | } |
| 945 | 948 | ||
| 946 | void System::SetExitLock(bool locked) { | 949 | void System::SetExitLocked(bool locked) { |
| 947 | impl->exit_lock = locked; | 950 | impl->exit_locked = locked; |
| 948 | } | 951 | } |
| 949 | 952 | ||
| 950 | bool System::GetExitLock() const { | 953 | bool System::GetExitLocked() const { |
| 951 | return impl->exit_lock; | 954 | return impl->exit_locked; |
| 955 | } | ||
| 956 | |||
| 957 | void System::SetExitRequested(bool requested) { | ||
| 958 | impl->exit_requested = requested; | ||
| 959 | } | ||
| 960 | |||
| 961 | bool System::GetExitRequested() const { | ||
| 962 | return impl->exit_requested; | ||
| 952 | } | 963 | } |
| 953 | 964 | ||
| 954 | void System::SetApplicationProcessBuildID(const CurrentBuildProcessID& id) { | 965 | void System::SetApplicationProcessBuildID(const CurrentBuildProcessID& id) { |