mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-12-23 08:50:57 +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:
parent
6b35317ff3
commit
989ad52dc1
1 changed files with 3 additions and 3 deletions
|
@ -52,15 +52,15 @@ void CpuManager::Shutdown() {
|
||||||
}
|
}
|
||||||
|
|
||||||
std::function<void(void*)> CpuManager::GetGuestThreadStartFunc() {
|
std::function<void(void*)> CpuManager::GetGuestThreadStartFunc() {
|
||||||
return std::function<void(void*)>(GuestThreadFunction);
|
return GuestThreadFunction;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::function<void(void*)> CpuManager::GetIdleThreadStartFunc() {
|
std::function<void(void*)> CpuManager::GetIdleThreadStartFunc() {
|
||||||
return std::function<void(void*)>(IdleThreadFunction);
|
return IdleThreadFunction;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::function<void(void*)> CpuManager::GetSuspendThreadStartFunc() {
|
std::function<void(void*)> CpuManager::GetSuspendThreadStartFunc() {
|
||||||
return std::function<void(void*)>(SuspendThreadFunction);
|
return SuspendThreadFunction;
|
||||||
}
|
}
|
||||||
|
|
||||||
void CpuManager::GuestThreadFunction(void* cpu_manager_) {
|
void CpuManager::GuestThreadFunction(void* cpu_manager_) {
|
||||||
|
|
Loading…
Reference in a new issue