projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
clang-tidy: add a subset of cppcoreguidelines and other style checks
[lttng-tools.git]
/
src
/
common
/
urcu.hpp
diff --git
a/src/common/urcu.hpp
b/src/common/urcu.hpp
index abbf71679690c0b7f95e2f3f44db744cf05ef413..edb53b7b59e0e842791a4ed9529e681f6d24439d 100644
(file)
--- a/
src/common/urcu.hpp
+++ b/
src/common/urcu.hpp
@@
-27,10
+27,13
@@
namespace details {
class read_lock {
public:
read_lock() = default;
class read_lock {
public:
read_lock() = default;
+ ~read_lock() = default;
/* "Not copyable" and "not moveable" Mutex requirements. */
/* "Not copyable" and "not moveable" Mutex requirements. */
- read_lock(read_lock const &) = delete;
- read_lock &operator=(read_lock const &) = delete;
+ read_lock(read_lock const&) = delete;
+ read_lock(read_lock&&) = delete;
+ read_lock& operator=(read_lock&&) = delete;
+ read_lock& operator=(const read_lock&) = delete;
void lock()
{
void lock()
{
@@
-58,12
+61,16
@@
public:
class read_lock_guard {
public:
read_lock_guard() = default;
class read_lock_guard {
public:
read_lock_guard() = default;
+ ~read_lock_guard() = default;
- read_lock_guard(const read_lock_guard &) = delete;
+ read_lock_guard(const read_lock_guard&) = delete;
+ read_lock_guard(read_lock_guard&&) = delete;
+ read_lock_guard& operator=(read_lock_guard&&) = delete;
+ read_lock_guard& operator=(const read_lock_guard&) = delete;
private:
details::read_lock _lock;
private:
details::read_lock _lock;
- std::lock_guard<details::read_lock> _guard{
_lock
};
+ std::lock_guard<details::read_lock> _guard{
_lock
};
};
using unique_read_lock = std::unique_lock<details::read_lock>;
};
using unique_read_lock = std::unique_lock<details::read_lock>;
This page took
0.025669 seconds
and
4
git commands to generate.