diff options
author | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2024-04-08 13:18:22 +0200 |
---|---|---|
committer | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2024-04-08 15:19:50 +0200 |
commit | 277be6dd08633dbebfda93afdfc6b5cb57e053e0 (patch) | |
tree | 6c86157c7f93636459361264054753a1dc9d33e9 /src/buildtool/execution_api/execution_service/operation_cache.hpp | |
parent | 419a458ad9d4383eb47d51fe8e4408a0e240c2f1 (diff) | |
download | justbuild-277be6dd08633dbebfda93afdfc6b5cb57e053e0.tar.gz |
Use properly included standard library types by default
Diffstat (limited to 'src/buildtool/execution_api/execution_service/operation_cache.hpp')
-rw-r--r-- | src/buildtool/execution_api/execution_service/operation_cache.hpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/buildtool/execution_api/execution_service/operation_cache.hpp b/src/buildtool/execution_api/execution_service/operation_cache.hpp index f06620a5..317bade4 100644 --- a/src/buildtool/execution_api/execution_service/operation_cache.hpp +++ b/src/buildtool/execution_api/execution_service/operation_cache.hpp @@ -17,6 +17,7 @@ #include <atomic> #include <cstddef> +#include <cstdint> #include <mutex> #include <optional> #include <shared_mutex> @@ -53,14 +54,14 @@ class OperationCache { return Instance().QueryInternal(x); } - static void SetExponent(uint8_t x) noexcept { + static void SetExponent(std::uint8_t x) noexcept { Instance().threshold_ = 1U << x; } private: mutable std::shared_mutex mutex_; std::unordered_map<std::string, ::google::longrunning::Operation> cache_; - static constexpr uint8_t kDefaultExponent{14}; + static constexpr std::uint8_t kDefaultExponent{14}; std::size_t threshold_{1U << kDefaultExponent}; void SetInternal(std::string const& action, Operation const& op) { |