diff options
author | Vlad Yaroslavlev <vladon@vladon.com> | 2022-02-10 16:46:25 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:25 +0300 |
commit | 344ea37b4a345701ab0e67de2266a1c1bd7baf2d (patch) | |
tree | 1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /util/system/thread.i | |
parent | 706b83ed7de5a473436620367af31fc0ceecde07 (diff) | |
download | ydb-344ea37b4a345701ab0e67de2266a1c1bd7baf2d.tar.gz |
Restoring authorship annotation for Vlad Yaroslavlev <vladon@vladon.com>. Commit 2 of 2.
Diffstat (limited to 'util/system/thread.i')
-rw-r--r-- | util/system/thread.i | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/util/system/thread.i b/util/system/thread.i index 086befc238..8cba505473 100644 --- a/util/system/thread.i +++ b/util/system/thread.i @@ -24,7 +24,7 @@ #include <util/digest/numeric.h> -static inline size_t SystemCurrentThreadIdImpl() noexcept { +static inline size_t SystemCurrentThreadIdImpl() noexcept { #if defined(_unix_) return (size_t)pthread_self(); #elif defined(_win_) @@ -35,7 +35,7 @@ static inline size_t SystemCurrentThreadIdImpl() noexcept { } template <class T> -static inline T ThreadIdHashFunction(T t) noexcept { +static inline T ThreadIdHashFunction(T t) noexcept { /* * we must permute threadid bits, because some strange platforms(such Linux) * have strange threadid numeric properties @@ -47,6 +47,6 @@ static inline T ThreadIdHashFunction(T t) noexcept { return IntHash(t); } -static inline size_t SystemCurrentThreadId() noexcept { +static inline size_t SystemCurrentThreadId() noexcept { return ThreadIdHashFunction(SystemCurrentThreadIdImpl()); } |