diff options
Diffstat (limited to 'src/common/thread.h')
| -rw-r--r-- | src/common/thread.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/common/thread.h b/src/common/thread.h index 5e7bc1f9c..be9b5cbe2 100644 --- a/src/common/thread.h +++ b/src/common/thread.h | |||
| @@ -30,7 +30,7 @@ int CurrentThreadId(); | |||
| 30 | 30 | ||
| 31 | void SetThreadAffinity(std::thread::native_handle_type thread, u32 mask); | 31 | void SetThreadAffinity(std::thread::native_handle_type thread, u32 mask); |
| 32 | void SetCurrentThreadAffinity(u32 mask); | 32 | void SetCurrentThreadAffinity(u32 mask); |
| 33 | 33 | ||
| 34 | class Event | 34 | class Event |
| 35 | { | 35 | { |
| 36 | public: | 36 | public: |
| @@ -135,7 +135,7 @@ private: | |||
| 135 | const size_t m_count; | 135 | const size_t m_count; |
| 136 | volatile size_t m_waiting; | 136 | volatile size_t m_waiting; |
| 137 | }; | 137 | }; |
| 138 | 138 | ||
| 139 | void SleepCurrentThread(int ms); | 139 | void SleepCurrentThread(int ms); |
| 140 | void SwitchCurrentThread(); // On Linux, this is equal to sleep 1ms | 140 | void SwitchCurrentThread(); // On Linux, this is equal to sleep 1ms |
| 141 | 141 | ||
| @@ -146,7 +146,7 @@ inline void YieldCPU() | |||
| 146 | { | 146 | { |
| 147 | std::this_thread::yield(); | 147 | std::this_thread::yield(); |
| 148 | } | 148 | } |
| 149 | 149 | ||
| 150 | void SetCurrentThreadName(const char *name); | 150 | void SetCurrentThreadName(const char *name); |
| 151 | 151 | ||
| 152 | } // namespace Common | 152 | } // namespace Common |