summaryrefslogtreecommitdiffstats
path: root/util/system/thread.cpp
diff options
context:
space:
mode:
authorprout <[email protected]>2022-02-10 16:49:42 +0300
committerDaniil Cherednik <[email protected]>2022-02-10 16:49:42 +0300
commit7b7fa28b9099b7adca890459a699c6ba5eeff4ca (patch)
treecffe238e08f715008f864d223dd0db8fc1f92f9f /util/system/thread.cpp
parent0fd1998e1b2369f50fb694556f817d3c7fef10c8 (diff)
Restoring authorship annotation for <[email protected]>. Commit 1 of 2.
Diffstat (limited to 'util/system/thread.cpp')
-rw-r--r--util/system/thread.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/util/system/thread.cpp b/util/system/thread.cpp
index 6236746c2d9..2d32e9ee8ff 100644
--- a/util/system/thread.cpp
+++ b/util/system/thread.cpp
@@ -355,18 +355,18 @@ TThread::TId TThread::CurrentThreadNumericId() noexcept {
TThread::TId TThread::ImpossibleThreadId() noexcept {
return Max<TThread::TId>();
}
-
-namespace {
+
+namespace {
template <class T>
static void* ThreadProcWrapper(void* param) {
return reinterpret_cast<T*>(param)->ThreadProc();
}
-}
-
+}
+
ISimpleThread::ISimpleThread(size_t stackSize)
: TThread(TParams(ThreadProcWrapper<ISimpleThread>, reinterpret_cast<void*>(this), stackSize))
-{
-}
+{
+}
#if defined(_MSC_VER)
// This beautiful piece of code is borrowed from