aboutsummaryrefslogtreecommitdiffstats
path: root/util/system/thread.cpp
diff options
context:
space:
mode:
authorleo <leo@yandex-team.ru>2022-02-10 16:46:40 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:40 +0300
commit99609724f661f7e21d1cb08e8d80e87c3632fdb3 (patch)
tree49e222ea1c5804306084bb3ae065bb702625360f /util/system/thread.cpp
parent980edcd3304699edf9d4e4d6a656e585028e2a72 (diff)
downloadydb-99609724f661f7e21d1cb08e8d80e87c3632fdb3.tar.gz
Restoring authorship annotation for <leo@yandex-team.ru>. Commit 2 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 0a50954446..6236746c2d 100644
--- a/util/system/thread.cpp
+++ b/util/system/thread.cpp
@@ -89,7 +89,7 @@ namespace {
inline TId SystemThreadId() const noexcept {
#if _WIN32_WINNT < 0x0502
- return (TId)ThreadId;
+ return (TId)ThreadId;
#else
return (TId)GetThreadId(Handle);
#endif
@@ -106,7 +106,7 @@ namespace {
::CloseHandle(Handle);
}
- static ui32 __stdcall Proxy(void* ptr) {
+ static ui32 __stdcall Proxy(void* ptr) {
NTls::TCleaner cleaner;
(void)cleaner;
@@ -121,7 +121,7 @@ namespace {
p->Result = p->Proc(p->Data);
}
- return 0;
+ return 0;
}
inline void Start() {
@@ -148,7 +148,7 @@ namespace {
};
using TThreadBase = TWinThread;
-#else
+#else
//unix
#define PCHECK(x, y) \
@@ -273,8 +273,8 @@ private:
TThread::TThread(const TParams& p)
: Impl_(new TImpl(p))
{
-}
-
+}
+
TThread::TThread(TThreadProc threadProc, void* param)
: Impl_(new TImpl(TParams(threadProc, param)))
{