mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-21 20:54:35 +02:00
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…
x
Reference in New Issue
Block a user