aboutsummaryrefslogtreecommitdiff
path: root/src/core/cpu_manager.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2020-07-27 21:57:03 -0400
committerLioncash <mathew1800@gmail.com>2020-07-27 21:57:05 -0400
commit989ad52dc1c46f1870a1a8431f7e3c669dceaf60 (patch)
tree28069710fc2341dd4798855b9fd7289e4de843a2 /src/core/cpu_manager.cpp
parent6b35317ff3ec51a0d28181094ee73634e639d658 (diff)
cpu_manager: Remove redundant std::function declarations
We can just return the function directly. Making for less reading.
Diffstat (limited to 'src/core/cpu_manager.cpp')
-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 32afcf3ae9..358943429f 100644
--- a/src/core/cpu_manager.cpp
+++ b/src/core/cpu_manager.cpp
@@ -52,15 +52,15 @@ void CpuManager::Shutdown() {
}
std::function<void(void*)> CpuManager::GetGuestThreadStartFunc() {
- return std::function<void(void*)>(GuestThreadFunction);
+ return GuestThreadFunction;
}
std::function<void(void*)> CpuManager::GetIdleThreadStartFunc() {
- return std::function<void(void*)>(IdleThreadFunction);
+ return IdleThreadFunction;
}
std::function<void(void*)> CpuManager::GetSuspendThreadStartFunc() {
- return std::function<void(void*)>(SuspendThreadFunction);
+ return SuspendThreadFunction;
}
void CpuManager::GuestThreadFunction(void* cpu_manager_) {