mirror of https://github.com/Icinga/icinga2.git
Prevent ObjectLock from being copied
Copying an ObjectLock results in the underlying mutex being unlocked too often. There's also no good reason for copying a scoped locking class (if at all, it should be moved).
This commit is contained in:
parent
ca328627cd
commit
a8cc5dff89
|
@ -17,6 +17,9 @@ public:
|
|||
ObjectLock(const Object::Ptr& object);
|
||||
ObjectLock(const Object *object);
|
||||
|
||||
ObjectLock(const ObjectLock&) = delete;
|
||||
ObjectLock& operator=(const ObjectLock&) = delete;
|
||||
|
||||
~ObjectLock();
|
||||
|
||||
void Lock();
|
||||
|
|
Loading…
Reference in New Issue