1 #ifndef SJEF_LIB_LOCKER_H_
2 #define SJEF_LIB_LOCKER_H_
8 namespace fs = std::filesystem;
32 const fs::path&
path()
const {
return m_path; }
38 const fs::path m_path;
39 std::unique_ptr<std::scoped_lock<std::mutex>> m_lock;
42 const std::unique_ptr<boost::interprocess::file_lock> m_file_lock;
43 std::thread::id m_owning_thread;
A thread-safe class for an inter-thread/inter-process lock. The lock mechanism is based on a locked f...
Definition: Locker.h:28
const fs::path & path() const
Definition: Locker.h:32
Bolt(const Bolt &)=delete
Bolt & operator=(const Bolt &)=delete