diff options
author | melkov <melkov@yandex-team.ru> | 2022-02-10 16:48:13 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:48:13 +0300 |
commit | 438546c8737d5c1fdeb31157dcf999717d930eec (patch) | |
tree | d29d229abd2f9f889b9b7eb148d635059dc26acf /util/system/thread.h | |
parent | 96647fad5355ff5ef45a00a6d85c097028584ab0 (diff) | |
download | ydb-438546c8737d5c1fdeb31157dcf999717d930eec.tar.gz |
Restoring authorship annotation for <melkov@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/system/thread.h')
-rw-r--r-- | util/system/thread.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/util/system/thread.h b/util/system/thread.h index a6e8abdb5be..8ce6ab30162 100644 --- a/util/system/thread.h +++ b/util/system/thread.h @@ -1,5 +1,5 @@ #pragma once - + /// This code should not be used directly unless you really understand what you do. /// If you need threads, use thread pool functionality in <util/thread/factory.h> /// @see SystemThreadFactory() @@ -9,7 +9,7 @@ #include "defaults.h" #include "progname.h" - + bool SetHighestThreadPriority(); class TThread { @@ -71,7 +71,7 @@ public: return *this; } }; - + TThread(const TParams& params); TThread(TThreadProc threadProc, void* param); @@ -113,18 +113,18 @@ public: // NOTE: Content of `name` will be copied. // // NOTE: On Linux thread name is limited to 15 symbols which is probably the smallest one among - // all platforms. If you provide a name longer than 15 symbols it will be cut. So if you expect + // all platforms. If you provide a name longer than 15 symbols it will be cut. So if you expect // `CurrentThreadName` to return the same name as `name` make sure it's not longer than 15 // symbols. static void SetCurrentThreadName(const char* name); - // NOTE: Will return empty string where CanGetCurrentThreadName() returns false. + // NOTE: Will return empty string where CanGetCurrentThreadName() returns false. static TString CurrentThreadName(); - // NOTE: Depends on a platform version. - // Will return true for Darwin, Linux or fresh Windows 10. - static bool CanGetCurrentThreadName(); - + // NOTE: Depends on a platform version. + // Will return true for Darwin, Linux or fresh Windows 10. + static bool CanGetCurrentThreadName(); + private: struct TCallableBase { virtual ~TCallableBase() = default; @@ -155,7 +155,7 @@ private: private: class TImpl; THolder<TImpl> Impl_; -}; +}; class ISimpleThread: public TThread { public: |