aboutsummaryrefslogtreecommitdiffstats
path: root/util/system/thread.h
diff options
context:
space:
mode:
authormelkov <melkov@yandex-team.ru>2022-02-10 16:48:14 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:48:14 +0300
commit2c532b38e6aeb4fd88531027c7335690fd34c4e5 (patch)
treeb222e5ac2e2e98872661c51ccceee5da0d291e13 /util/system/thread.h
parent438546c8737d5c1fdeb31157dcf999717d930eec (diff)
downloadydb-2c532b38e6aeb4fd88531027c7335690fd34c4e5.tar.gz
Restoring authorship annotation for <melkov@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/system/thread.h')
-rw-r--r--util/system/thread.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/util/system/thread.h b/util/system/thread.h
index 8ce6ab30162..a6e8abdb5be 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: