diff options
author | prout <[email protected]> | 2022-02-10 16:49:42 +0300 |
---|---|---|
committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:49:42 +0300 |
commit | 7b7fa28b9099b7adca890459a699c6ba5eeff4ca (patch) | |
tree | cffe238e08f715008f864d223dd0db8fc1f92f9f /util/system/thread.cpp | |
parent | 0fd1998e1b2369f50fb694556f817d3c7fef10c8 (diff) |
Restoring authorship annotation for <[email protected]>. Commit 1 of 2.
Diffstat (limited to 'util/system/thread.cpp')
-rw-r--r-- | util/system/thread.cpp | 12 |
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 |