diff options
| author | Lioncash <mathew1800@gmail.com> | 2018-11-21 21:42:30 -0500 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2018-11-21 21:42:33 -0500 |
| commit | 6459301aa3f74781d4f0aac23079d9e29d5e2113 (patch) | |
| tree | 41cc13e5e8e2b2330d3c38bf96495fac3e22e02b /src/common/thread.h | |
| parent | 814e65334e26bc372bf9d51630e6ca69790482bb (diff) | |
common/thread: Group non-member functions together
Keeps the non-member interface in one spot instead of split into two
places, making it nicer to locate functions.
Diffstat (limited to 'src/common/thread.h')
| -rw-r--r-- | src/common/thread.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/common/thread.h b/src/common/thread.h index 5d3f39bd08..816183bc8c 100644 --- a/src/common/thread.h +++ b/src/common/thread.h @@ -13,9 +13,6 @@ namespace Common { -void SetThreadAffinity(std::thread::native_handle_type thread, u32 mask); -void SetCurrentThreadAffinity(u32 mask); - class Event { public: Event() : is_set(false) {} @@ -83,6 +80,8 @@ private: std::size_t generation; // Incremented once each time the barrier is used }; +void SetThreadAffinity(std::thread::native_handle_type thread, u32 mask); +void SetCurrentThreadAffinity(u32 mask); void SwitchCurrentThread(); // On Linux, this is equal to sleep 1ms void SetCurrentThreadName(const char* name); |
