aboutsummaryrefslogtreecommitdiffstats
path: root/util/system/thread.h
diff options
context:
space:
mode:
authorVlad Yaroslavlev <vladon@vladon.com>2022-02-10 16:46:23 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:23 +0300
commit706b83ed7de5a473436620367af31fc0ceecde07 (patch)
tree103305d30dec77e8f6367753367f59b3cd68f9f1 /util/system/thread.h
parent918e8a1574070d0ec733f0b76cfad8f8892ad2e5 (diff)
downloadydb-706b83ed7de5a473436620367af31fc0ceecde07.tar.gz
Restoring authorship annotation for Vlad Yaroslavlev <vladon@vladon.com>. Commit 1 of 2.
Diffstat (limited to 'util/system/thread.h')
-rw-r--r--util/system/thread.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/util/system/thread.h b/util/system/thread.h
index a6e8abdb5b..5702b549fa 100644
--- a/util/system/thread.h
+++ b/util/system/thread.h
@@ -5,7 +5,7 @@
/// @see SystemThreadFactory()
#include <util/generic/ptr.h>
-#include <util/generic/string.h>
+#include <util/generic/string.h>
#include "defaults.h"
#include "progname.h"
@@ -53,19 +53,19 @@ public:
{
}
- inline TParams& SetName(const TString& name) noexcept {
+ inline TParams& SetName(const TString& name) noexcept {
Name = name;
return *this;
}
- inline TParams& SetStackSize(size_t size) noexcept {
+ inline TParams& SetStackSize(size_t size) noexcept {
StackSize = size;
return *this;
}
- inline TParams& SetStackPointer(void* ptr) noexcept {
+ inline TParams& SetStackPointer(void* ptr) noexcept {
StackPointer = ptr;
return *this;
@@ -92,17 +92,17 @@ public:
{
}
- ~TThread();
+ ~TThread();
void Start();
void* Join();
void Detach();
- bool Running() const noexcept;
- TId Id() const noexcept;
+ bool Running() const noexcept;
+ TId Id() const noexcept;
- static TId ImpossibleThreadId() noexcept;
- static TId CurrentThreadId() noexcept;
+ static TId ImpossibleThreadId() noexcept;
+ static TId CurrentThreadId() noexcept;
/*
* Returns numeric thread id, as visible in e. g. htop.