2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

cpu_manager: Remove redundant std::function declarations

We can just return the function directly. Making for less reading.
This commit is contained in:
Lioncash 2020-07-27 21:57:03 -04:00
parent 6b35317ff3
commit 989ad52dc1

View file

@ -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_) {