Skip to content

Commit 9db8ae8

Browse files
committed
Improve deleted copy and assignment.
1 parent 00b3f23 commit 9db8ae8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/common/isc_s_proto.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,9 @@ class SharedMutexGuard
386386
m_locked = false;
387387
}
388388

389+
SharedMutexGuard(const SharedMutexGuard&) = delete;
390+
SharedMutexGuard& operator=(const SharedMutexGuard&) = delete;
391+
389392
bool tryLock() {
390393
m_locked = m_shmem->mutexLockCond();
391394
return m_locked;
@@ -412,9 +415,6 @@ class SharedMutexGuard
412415
}
413416

414417
private:
415-
SharedMutexGuard(const SharedMutexGuard&);
416-
SharedMutexGuard& operator=(const SharedMutexGuard&);
417-
418418
SharedMemoryBase* m_shmem;
419419
bool m_locked;
420420
};

0 commit comments

Comments
 (0)