diff options
author | Lioncash <mathew1800@gmail.com> | 2018-11-21 21:40:08 -0500 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2018-11-21 21:40:11 -0500 |
commit | d6583d68f630f3bd9a5626ab0fc24f2027ddd50a (patch) | |
tree | 5b3adda2620a1d81e31ac416a5f53573f7a6c0ac /src/common/thread.h | |
parent | 1d555fdd25fd33a6b14df59dc3291905573f142c (diff) |
common/thread: Remove SleepCurrentThread()
This is also unused and superceded by standard functionality. The
standard library provides std::this_thread::sleep_for(), which provides
a much more flexible interface, as different time units can be used with
it.
Diffstat (limited to 'src/common/thread.h')
-rw-r--r-- | src/common/thread.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/common/thread.h b/src/common/thread.h index c20809021..5d3f39bd0 100644 --- a/src/common/thread.h +++ b/src/common/thread.h @@ -83,7 +83,6 @@ private: std::size_t generation; // Incremented once each time the barrier is used }; -void SleepCurrentThread(int ms); void SwitchCurrentThread(); // On Linux, this is equal to sleep 1ms void SetCurrentThreadName(const char* name); |