bunnei
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
0 additions and
8 deletions
-
src/common/thread.h
|
|
|
@ -87,14 +87,6 @@ private: |
|
|
|
|
|
|
|
void SleepCurrentThread(int ms); |
|
|
|
void SwitchCurrentThread(); // On Linux, this is equal to sleep 1ms |
|
|
|
|
|
|
|
// Use this function during a spin-wait to make the current thread |
|
|
|
// relax while another thread is working. This may be more efficient |
|
|
|
// than using events because event functions use kernel calls. |
|
|
|
inline void YieldCPU() { |
|
|
|
std::this_thread::yield(); |
|
|
|
} |
|
|
|
|
|
|
|
void SetCurrentThreadName(const char* name); |
|
|
|
|
|
|
|
} // namespace Common |