From 02602afd100ad7489de6a5da54ead3e7f22cbac7 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Wed, 21 Nov 2018 21:42:30 -0500 Subject: 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. --- src/common/thread.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/common/thread.h') diff --git a/src/common/thread.h b/src/common/thread.h index 5d3f39bd0..816183bc8 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); -- cgit v1.2.3