Merge pull request #4439 from lioncash/cpu

cpu_manager: Remove redundant std::function declarations
This commit is contained in:
David 2020-08-03 20:58:31 +10:00 committed by GitHub
commit 0ca42c806f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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