projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Clean-up: apply suggested clang-tidy fixes
[lttng-tools.git]
/
src
/
common
/
urcu.hpp
diff --git
a/src/common/urcu.hpp
b/src/common/urcu.hpp
index d121ecd9f6799b62e1236a56b17d4d9f4110ba85..35bb2905c9e44cfeaf14b6e065d39696861ce8a6 100644
(file)
--- a/
src/common/urcu.hpp
+++ b/
src/common/urcu.hpp
@@
-9,8
+9,8
@@
#define LTTNG_URCU_H
#define _LGPL_SOURCE
#define LTTNG_URCU_H
#define _LGPL_SOURCE
-#include <urcu.h>
#include <mutex>
#include <mutex>
+#include <urcu.h>
namespace lttng {
namespace urcu {
namespace lttng {
namespace urcu {
@@
-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()
{
@@
-57,15
+60,17
@@
public:
*/
class read_lock_guard {
public:
*/
class read_lock_guard {
public:
- read_lock_guard() : _guard(_lock)
- {
- }
+ 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;
+ 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.024273 seconds
and
4
git commands to generate.