mirror of
https://github.com/Icinga/icinga2.git
synced 2026-05-28 04:12:13 -04: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
1 changed files with 3 additions and 0 deletions
|
|
@ -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 a new issue