diff options
| author | 2018-11-21 21:42:30 -0500 | |
|---|---|---|
| committer | 2018-11-21 21:42:33 -0500 | |
| commit | 02602afd100ad7489de6a5da54ead3e7f22cbac7 (patch) | |
| tree | 41cc13e5e8e2b2330d3c38bf96495fac3e22e02b /src/common/thread.h | |
| parent | common/thread: Remove SleepCurrentThread() (diff) | |
| download | yuzu-02602afd100ad7489de6a5da54ead3e7f22cbac7.tar.gz yuzu-02602afd100ad7489de6a5da54ead3e7f22cbac7.tar.xz yuzu-02602afd100ad7489de6a5da54ead3e7f22cbac7.zip | |
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 5d3f39bd0..816183bc8 100644 --- a/src/common/thread.h +++ b/src/common/thread.h | |||
| @@ -13,9 +13,6 @@ | |||
| 13 | 13 | ||
| 14 | namespace Common { | 14 | namespace Common { |
| 15 | 15 | ||
| 16 | void SetThreadAffinity(std::thread::native_handle_type thread, u32 mask); | ||
| 17 | void SetCurrentThreadAffinity(u32 mask); | ||
| 18 | |||
| 19 | class Event { | 16 | class Event { |
| 20 | public: | 17 | public: |
| 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 | ||
| 83 | void SetThreadAffinity(std::thread::native_handle_type thread, u32 mask); | ||
| 84 | void SetCurrentThreadAffinity(u32 mask); | ||
| 86 | void SwitchCurrentThread(); // On Linux, this is equal to sleep 1ms | 85 | void SwitchCurrentThread(); // On Linux, this is equal to sleep 1ms |
| 87 | void SetCurrentThreadName(const char* name); | 86 | void SetCurrentThreadName(const char* name); |
| 88 | 87 | ||