summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Lioncash2020-07-27 21:57:03 -0400
committerGravatar Lioncash2020-07-27 21:57:05 -0400
commit989ad52dc1c46f1870a1a8431f7e3c669dceaf60 (patch)
tree28069710fc2341dd4798855b9fd7289e4de843a2 /src
parentMerge pull request #4419 from lioncash/initializer (diff)
downloadyuzu-989ad52dc1c46f1870a1a8431f7e3c669dceaf60.tar.gz
yuzu-989ad52dc1c46f1870a1a8431f7e3c669dceaf60.tar.xz
yuzu-989ad52dc1c46f1870a1a8431f7e3c669dceaf60.zip
cpu_manager: Remove redundant std::function declarations
We can just return the function directly. Making for less reading.
Diffstat (limited to 'src')
-rw-r--r--src/core/cpu_manager.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/cpu_manager.cpp b/src/core/cpu_manager.cpp
index 32afcf3ae..358943429 100644
--- a/src/core/cpu_manager.cpp
+++ b/src/core/cpu_manager.cpp
@@ -52,15 +52,15 @@ void CpuManager::Shutdown() {
52} 52}
53 53
54std::function<void(void*)> CpuManager::GetGuestThreadStartFunc() { 54std::function<void(void*)> CpuManager::GetGuestThreadStartFunc() {
55 return std::function<void(void*)>(GuestThreadFunction); 55 return GuestThreadFunction;
56} 56}
57 57
58std::function<void(void*)> CpuManager::GetIdleThreadStartFunc() { 58std::function<void(void*)> CpuManager::GetIdleThreadStartFunc() {
59 return std::function<void(void*)>(IdleThreadFunction); 59 return IdleThreadFunction;
60} 60}
61 61
62std::function<void(void*)> CpuManager::GetSuspendThreadStartFunc() { 62std::function<void(void*)> CpuManager::GetSuspendThreadStartFunc() {
63 return std::function<void(void*)>(SuspendThreadFunction); 63 return SuspendThreadFunction;
64} 64}
65 65
66void CpuManager::GuestThreadFunction(void* cpu_manager_) { 66void CpuManager::GuestThreadFunction(void* cpu_manager_) {