diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2020-12-15 13:10:02 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2020-12-15 13:13:20 +0000 |
commit | 37be7b1516dcd42bfd34b6f9ffbe3896959717eb (patch) | |
tree | 7b7a4705d1e9cb82154c47865f677bad89d2ca0c /storageframework/src | |
parent | ad4a9a58f97d7558eff48c6cd857cae3b570d55d (diff) |
- Wire in the guard to make it evident that we have it when making changes that require it.
- Clean up some old members and code not used any more.
Diffstat (limited to 'storageframework/src')
-rw-r--r-- | storageframework/src/vespa/storageframework/generic/metric/metricupdatehook.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/storageframework/src/vespa/storageframework/generic/metric/metricupdatehook.h b/storageframework/src/vespa/storageframework/generic/metric/metricupdatehook.h index fb9606f33e0..6292fe9a598 100644 --- a/storageframework/src/vespa/storageframework/generic/metric/metricupdatehook.h +++ b/storageframework/src/vespa/storageframework/generic/metric/metricupdatehook.h @@ -9,10 +9,12 @@ #include <mutex> +namespace metrics { class MetricLockGuard; } + namespace storage::framework { struct MetricUpdateHook { - using MetricLockGuard = std::unique_lock<std::mutex>; + using MetricLockGuard = metrics::MetricLockGuard; virtual ~MetricUpdateHook() = default; virtual void updateMetrics(const MetricLockGuard &) = 0; |