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

Detailed Description

A task that tries to acquire a distributed lock and runs user callback once while the lock is held.

Definition in file dist_locked_task.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/engine/task/task_base.hpp>
#include <userver/engine/task/task_processor_fwd.hpp>
+ Include dependency graph for dist_locked_task.hpp:

Classes

class  dist_lock::DistLockedTask
 A task that tries to acquire a distributed lock and runs user callback once while the lock is held. More...
 

Namespaces

namespace  dist_lock
 Distributed locking.