summaryrefslogtreecommitdiff
path: root/libs/pbd/pbd/spinlock.h
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2019-07-28 15:02:04 +0200
committerRobin Gareus <robin@gareus.org>2019-07-28 15:02:04 +0200
commit63fee3b0c84b164bd6be2834f8f7e8cc608c38de (patch)
tree0956405d193a567da06638f6a501261a9844a1ca /libs/pbd/pbd/spinlock.h
parentd00650c2fdbee486c456143b9e2f1cb00485f4ad (diff)
Prevent spinlock copy construction
Diffstat (limited to 'libs/pbd/pbd/spinlock.h')
-rw-r--r--libs/pbd/pbd/spinlock.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/pbd/pbd/spinlock.h b/libs/pbd/pbd/spinlock.h
index 6fafeb0f78..2e543408df 100644
--- a/libs/pbd/pbd/spinlock.h
+++ b/libs/pbd/pbd/spinlock.h
@@ -41,6 +41,9 @@ public:
bool try_lock () { return l.try_lock (); }
private:
boost::detail::spinlock l;
+
+ /* prevent copy construction */
+ spinlock_t (const spinlock_t&);
};
/* RAII wrapper */