cleanup
This commit is contained in:
parent
0a0edb76f0
commit
9a9986afe7
@ -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};
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user