userver
C++ Async Framework
Loading...
Searching...
No Matches
statistics.hpp
Go to the documentation of this file.
1
#
pragma
once
2
3
/// @file userver/dist_lock/statistics.hpp
4
/// @brief @copybrief dist_lock::Statistics
5
6
#
include
<
cstddef
>
7
8
#
include
<
userver
/
utils
/
statistics
/
relaxed_counter
.
hpp
>
9
10
USERVER_NAMESPACE_BEGIN
11
12
namespace
dist_lock
{
13
14
/// @brief Distributed lock worker statistics counters
15
struct
Statistics
{
16
utils
::
statistics
::RelaxedCounter<size_t> lock_successes{0};
17
utils
::
statistics
::RelaxedCounter<size_t> lock_failures{0};
18
utils
::
statistics
::RelaxedCounter<size_t> watchdog_triggers{0};
19
utils
::
statistics
::RelaxedCounter<size_t> brain_splits{0};
20
utils
::
statistics
::RelaxedCounter<size_t> task_failures{0};
21
};
22
23
}
// namespace dist_lock
24
25
USERVER_NAMESPACE_END
userver
dist_lock
statistics.hpp
Generated on Thu May 21 2026 16:18:35 for userver by
Doxygen
1.13.2