diff options
author | Stanislav Kirillov <staskirillov@gmail.com> | 2022-02-10 16:46:08 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:08 +0300 |
commit | cb68f224c46a8ee52ac3fdd2a32534b8bb8dc134 (patch) | |
tree | 1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /util/system/thread.cpp | |
parent | 92fe2b1e7bc79f7b95adef61714fc003f6ea4a1c (diff) | |
download | ydb-cb68f224c46a8ee52ac3fdd2a32534b8bb8dc134.tar.gz |
Restoring authorship annotation for Stanislav Kirillov <staskirillov@gmail.com>. Commit 2 of 2.
Diffstat (limited to 'util/system/thread.cpp')
-rw-r--r-- | util/system/thread.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/util/system/thread.cpp b/util/system/thread.cpp index 23653dd96d..6236746c2d 100644 --- a/util/system/thread.cpp +++ b/util/system/thread.cpp @@ -452,9 +452,9 @@ void TThread::SetCurrentThreadName(const char* name) { pthread_t thread = pthread_self(); pthread_set_name_np(thread, name); #elif defined(_linux_) - prctl(PR_SET_NAME, name, 0, 0, 0); + prctl(PR_SET_NAME, name, 0, 0, 0); #elif defined(_darwin_) - pthread_setname_np(name); + pthread_setname_np(name); #elif defined(_win_) auto api = Singleton<TWinThreadDescrAPI>(); if (api->HasAPI()) { @@ -514,18 +514,18 @@ TCurrentThreadLimits::TCurrentThreadLimits() noexcept : StackBegin(nullptr) , StackLength(0) { -#if defined(_linux_) || defined(_cygwin_) || defined(_freebsd_) +#if defined(_linux_) || defined(_cygwin_) || defined(_freebsd_) pthread_attr_t attr; pthread_attr_init(&attr); #if defined(_linux_) || defined(_cygwin_) Y_VERIFY(pthread_getattr_np(pthread_self(), &attr) == 0, "pthread_getattr failed"); #else - Y_VERIFY(pthread_attr_get_np(pthread_self(), &attr) == 0, "pthread_attr_get_np failed"); + Y_VERIFY(pthread_attr_get_np(pthread_self(), &attr) == 0, "pthread_attr_get_np failed"); #endif pthread_attr_getstack(&attr, (void**)&StackBegin, &StackLength); pthread_attr_destroy(&attr); - + #elif defined(_darwin_) StackBegin = pthread_get_stackaddr_np(pthread_self()); StackLength = pthread_get_stacksize_np(pthread_self()); |