diff options
author | Alexander Gololobov <davenger@yandex-team.com> | 2022-02-10 16:47:38 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:47:38 +0300 |
commit | fccc62e9bfdce9be2fe7e0f23479da3a5512211a (patch) | |
tree | c0748b5dcbade83af788c0abfa89c0383d6b779c /library/cpp/messagebus/local_tasks.h | |
parent | 39608cdb86363c75ce55b2b9a69841c3b71f22cf (diff) | |
download | ydb-fccc62e9bfdce9be2fe7e0f23479da3a5512211a.tar.gz |
Restoring authorship annotation for Alexander Gololobov <davenger@yandex-team.com>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/messagebus/local_tasks.h')
-rw-r--r-- | library/cpp/messagebus/local_tasks.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/library/cpp/messagebus/local_tasks.h b/library/cpp/messagebus/local_tasks.h index c92d197ca59..d8e801a4572 100644 --- a/library/cpp/messagebus/local_tasks.h +++ b/library/cpp/messagebus/local_tasks.h @@ -1,23 +1,23 @@ #pragma once -#include <util/system/atomic.h> - +#include <util/system/atomic.h> + class TLocalTasks { private: - TAtomic GotTasks; + TAtomic GotTasks; public: TLocalTasks() - : GotTasks(0) + : GotTasks(0) { } void AddTask() { - AtomicSet(GotTasks, 1); + AtomicSet(GotTasks, 1); } bool FetchTask() { - bool gotTasks = AtomicCas(&GotTasks, 0, 1); + bool gotTasks = AtomicCas(&GotTasks, 0, 1); return gotTasks; } }; |