summaryrefslogtreecommitdiff
path: root/src/common/thread.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/thread.h')
-rw-r--r--src/common/thread.h5
1 files changed, 2 insertions, 3 deletions
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 @@
13 13
14namespace Common { 14namespace Common {
15 15
16void SetThreadAffinity(std::thread::native_handle_type thread, u32 mask);
17void SetCurrentThreadAffinity(u32 mask);
18
19class Event { 16class Event {
20public: 17public:
21 Event() : is_set(false) {} 18 Event() : is_set(false) {}
@@ -83,6 +80,8 @@ private:
83 std::size_t generation; // Incremented once each time the barrier is used 80 std::size_t generation; // Incremented once each time the barrier is used
84}; 81};
85 82
83void SetThreadAffinity(std::thread::native_handle_type thread, u32 mask);
84void SetCurrentThreadAffinity(u32 mask);
86void SwitchCurrentThread(); // On Linux, this is equal to sleep 1ms 85void SwitchCurrentThread(); // On Linux, this is equal to sleep 1ms
87void SetCurrentThreadName(const char* name); 86void SetCurrentThreadName(const char* name);
88 87