diff options
author | Lioncash <mathew1800@gmail.com> | 2018-11-22 03:42:30 +0100 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2018-11-22 03:42:33 +0100 |
commit | 02602afd100ad7489de6a5da54ead3e7f22cbac7 (patch) | |
tree | 41cc13e5e8e2b2330d3c38bf96495fac3e22e02b /src | |
parent | common/thread: Remove SleepCurrentThread() (diff) | |
download | yuzu-02602afd100ad7489de6a5da54ead3e7f22cbac7.tar yuzu-02602afd100ad7489de6a5da54ead3e7f22cbac7.tar.gz yuzu-02602afd100ad7489de6a5da54ead3e7f22cbac7.tar.bz2 yuzu-02602afd100ad7489de6a5da54ead3e7f22cbac7.tar.lz yuzu-02602afd100ad7489de6a5da54ead3e7f22cbac7.tar.xz yuzu-02602afd100ad7489de6a5da54ead3e7f22cbac7.tar.zst yuzu-02602afd100ad7489de6a5da54ead3e7f22cbac7.zip |
Diffstat (limited to '')
-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 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); |