userver: userver/dist_lock/dist_locked_worker.hpp File Reference
Loading...
Searching...
No Matches
dist_locked_worker.hpp File Reference

Detailed Description

Perpetually acquires a distributed lock and runs a callback while it is held and runs user callback in a separate task while the lock is held. Cancels the task when the lock is lost.

Definition in file dist_locked_worker.hpp.

Go to the source code of this file.

#include <chrono>
#include <functional>
#include <memory>
#include <optional>
#include <string>
#include <userver/dist_lock/dist_lock_settings.hpp>
#include <userver/dist_lock/dist_lock_strategy.hpp>
#include <userver/dist_lock/statistics.hpp>
#include <userver/engine/mutex.hpp>
#include <userver/engine/task/task_with_result.hpp>
#include <userver/logging/level.hpp>
+ This graph shows which files directly or indirectly include this file:

Classes

class  dist_lock::DistLockedWorker
 Perpetually acquires a distributed lock and runs a callback while it is held and runs user callback in a separate task while the lock is held. Cancels the task when the lock is lost. More...
 

Namespaces

namespace  dist_lock
 Distributed locking.
 

Functions

void dist_lock::DumpMetric (utils::statistics::Writer &writer, const DistLockedWorker &worker)