diff options
author | Alexander Rutkovsky <alexvru@mail.ru> | 2022-02-10 16:47:39 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:47:39 +0300 |
commit | f3646f91e0de459836a7800b9ce3e8dc57a2ab3a (patch) | |
tree | 25c1423200152570c1f8307e5b8304b9bc3840c5 /library/cpp/actors/core/defs.h | |
parent | fccc62e9bfdce9be2fe7e0f23479da3a5512211a (diff) | |
download | ydb-f3646f91e0de459836a7800b9ce3e8dc57a2ab3a.tar.gz |
Restoring authorship annotation for Alexander Rutkovsky <alexvru@mail.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/actors/core/defs.h')
-rw-r--r-- | library/cpp/actors/core/defs.h | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/library/cpp/actors/core/defs.h b/library/cpp/actors/core/defs.h index 980b7d767b..d65100e1f5 100644 --- a/library/cpp/actors/core/defs.h +++ b/library/cpp/actors/core/defs.h @@ -3,8 +3,8 @@ // unique tag to fix pragma once gcc glueing: ./library/actorlib/core/defs.h #include <library/cpp/actors/util/defs.h> -#include <util/generic/hash.h> -#include <util/string/printf.h> +#include <util/generic/hash.h> +#include <util/string/printf.h> // Enables collection of // event send/receive counts @@ -18,7 +18,7 @@ namespace NActors { static constexpr TPoolId PoolBits = 6; static constexpr TPoolId MaxPools = (1 << PoolBits) - 1; // maximum amount of pools (poolid=63 is reserved) static constexpr TPoolsMask WaitPoolsFlag = (1ull << MaxPools); // wait-for-slow-workers flag bitmask - + // Special TPoolId values used by TCpuState static constexpr TPoolId CpuSpinning = MaxPools; // fast-worker is actively spinning, no slow-workers static constexpr TPoolId CpuBlocked = MaxPools + 1; // fast-worker is blocked, no slow-workers @@ -50,20 +50,20 @@ namespace NActors { //Virtual }; }; - - struct TScopeId : std::pair<ui64, ui64> { - using TBase = std::pair<ui64, ui64>; - using TBase::TBase; - static const TScopeId LocallyGenerated; - }; - - static inline TString ScopeIdToString(const TScopeId& scopeId) { - return Sprintf("<%" PRIu64 ":%" PRIu64 ">", scopeId.first, scopeId.second); - } - + + struct TScopeId : std::pair<ui64, ui64> { + using TBase = std::pair<ui64, ui64>; + using TBase::TBase; + static const TScopeId LocallyGenerated; + }; + + static inline TString ScopeIdToString(const TScopeId& scopeId) { + return Sprintf("<%" PRIu64 ":%" PRIu64 ">", scopeId.first, scopeId.second); + } + } -template<> -struct hash<NActors::TScopeId> : hash<std::pair<ui64, ui64>> {}; - +template<> +struct hash<NActors::TScopeId> : hash<std::pair<ui64, ui64>> {}; + class TAffinity; |