27 virtual void lock() = 0;
56 std::function<
void(
size_t)> reload_cache_callback = {}) {}
virtual void unlock_shared()
virtual bool try_lock_shared()=0
virtual void convert_lock_shared()
DistributedSharedMutex(std::filesystem::path lockfilename, Callbacks callbacks)
virtual bool try_convert_lock()
std::function< void(bool)> pre_unlock_callback
virtual bool try_convert_lock_shared()
virtual void lock_shared()
virtual ~SharedMutexInterface()
DistributedSharedMutex(std::filesystem::path lockfilename, std::function< void(size_t)> reload_cache_callback={})
virtual bool try_lock_shared()
virtual ~MutexInterface()
std::function< void(bool)> pre_lock_callback
~DistributedSharedMutex()
virtual void lock_shared()=0
virtual void convert_lock()
std::function< void(bool)> post_unlock_callback
virtual void unlock_shared()=0
virtual bool try_lock()=0
std::function< void(size_t)> reload_cache_callback
std::function< void(bool)> post_lock_callback