This commit is contained in:
Scott E. Graves 2025-03-25 12:52:48 -05:00
parent 0a0edb76f0
commit 9a9986afe7
2 changed files with 1 additions and 2 deletions

View File

@ -43,7 +43,6 @@ public:
~lock_data(); ~lock_data();
private: private:
provider_type prov_;
std::string mutex_id_; std::string mutex_id_;
int lock_fd_; int lock_fd_;
int lock_status_{EWOULDBLOCK}; int lock_status_{EWOULDBLOCK};

View File

@ -42,7 +42,7 @@ auto create_lock_id(provider_type prov, std::string unique_id) {
} }
lock_data::lock_data(const provider_type &prov, std::string unique_id) lock_data::lock_data(const provider_type &prov, std::string unique_id)
: prov_(prov), mutex_id_(create_lock_id(prov, unique_id)) { : mutex_id_(create_lock_id(prov, unique_id)) {
lock_fd_ = open(get_lock_file().c_str(), O_CREAT | O_RDWR, S_IWUSR | S_IRUSR); lock_fd_ = open(get_lock_file().c_str(), O_CREAT | O_RDWR, S_IWUSR | S_IRUSR);
} }