diff options
| author | 2020-07-27 21:57:03 -0400 | |
|---|---|---|
| committer | 2020-07-27 21:57:05 -0400 | |
| commit | 989ad52dc1c46f1870a1a8431f7e3c669dceaf60 (patch) | |
| tree | 28069710fc2341dd4798855b9fd7289e4de843a2 /src | |
| parent | Merge pull request #4419 from lioncash/initializer (diff) | |
| download | yuzu-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.cpp | 6 |
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 | ||
| 54 | std::function<void(void*)> CpuManager::GetGuestThreadStartFunc() { | 54 | std::function<void(void*)> CpuManager::GetGuestThreadStartFunc() { |
| 55 | return std::function<void(void*)>(GuestThreadFunction); | 55 | return GuestThreadFunction; |
| 56 | } | 56 | } |
| 57 | 57 | ||
| 58 | std::function<void(void*)> CpuManager::GetIdleThreadStartFunc() { | 58 | std::function<void(void*)> CpuManager::GetIdleThreadStartFunc() { |
| 59 | return std::function<void(void*)>(IdleThreadFunction); | 59 | return IdleThreadFunction; |
| 60 | } | 60 | } |
| 61 | 61 | ||
| 62 | std::function<void(void*)> CpuManager::GetSuspendThreadStartFunc() { | 62 | std::function<void(void*)> CpuManager::GetSuspendThreadStartFunc() { |
| 63 | return std::function<void(void*)>(SuspendThreadFunction); | 63 | return SuspendThreadFunction; |
| 64 | } | 64 | } |
| 65 | 65 | ||
| 66 | void CpuManager::GuestThreadFunction(void* cpu_manager_) { | 66 | void CpuManager::GuestThreadFunction(void* cpu_manager_) { |