aboutsummaryrefslogtreecommitdiffstats
path: root/util/system/context.cpp
diff options
context:
space:
mode:
authorthegeorg <thegeorg@yandex-team.ru>2022-02-10 16:45:12 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:12 +0300
commit49116032d905455a7b1c994e4a696afc885c1e71 (patch)
treebe835aa92c6248212e705f25388ebafcf84bc7a1 /util/system/context.cpp
parent4e839db24a3bbc9f1c610c43d6faaaa99824dcca (diff)
downloadydb-49116032d905455a7b1c994e4a696afc885c1e71.tar.gz
Restoring authorship annotation for <thegeorg@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/system/context.cpp')
-rw-r--r--util/system/context.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/util/system/context.cpp b/util/system/context.cpp
index 17acc793c5..ad99309088 100644
--- a/util/system/context.cpp
+++ b/util/system/context.cpp
@@ -54,11 +54,11 @@ extern "C" int __mysetjmp(__myjmp_buf env) __attribute__((__returns_twice__));
namespace {
class TStackType {
public:
- inline TStackType(TArrayRef<char> range) noexcept
+ inline TStackType(TArrayRef<char> range) noexcept
#if defined(STACK_GROW_DOWN)
- : Data_(range.data() + range.size())
+ : Data_(range.data() + range.size())
#else
- : Data_(range.data() + STACK_ALIGN)
+ : Data_(range.data() + STACK_ALIGN)
#endif
{
ReAlign();
@@ -206,10 +206,10 @@ void TContMachineContext::SwitchTo(TContMachineContext* next) noexcept {
#endif
}
}
-#elif defined(_win_) && defined(_32_)
-void __stdcall ContextTrampoLine(void* arg) {
- Run(arg);
-}
+#elif defined(_win_) && defined(_32_)
+void __stdcall ContextTrampoLine(void* arg) {
+ Run(arg);
+}
#else
void ContextTrampoLine(void* arg) {
Run(arg);
@@ -225,7 +225,7 @@ TContMachineContext::TContMachineContext()
}
TContMachineContext::TContMachineContext(const TContClosure& c)
- : Fiber_(CreateFiber(c.Stack.size(), (LPFIBER_START_ROUTINE)ContextTrampoLine, (LPVOID)c.TrampoLine))
+ : Fiber_(CreateFiber(c.Stack.size(), (LPFIBER_START_ROUTINE)ContextTrampoLine, (LPVOID)c.TrampoLine))
, MainFiber_(false)
{
Y_ENSURE(Fiber_, TStringBuf("fiber error"));
@@ -258,7 +258,7 @@ struct TContMachineContext::TImpl {
: TL(c.TrampoLine)
, Finish(false)
{
- Thread.Reset(new TThread(TThread::TParams(Run, this).SetStackSize(c.Stack.size()).SetStackPointer((void*)c.Stack.data())));
+ Thread.Reset(new TThread(TThread::TParams(Run, this).SetStackSize(c.Stack.size()).SetStackPointer((void*)c.Stack.data())));
Thread->Start();
}