summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2018-01-26 20:06:11 -0500
committerAdam Ierymenko <adam.ierymenko@gmail.com>2018-01-26 20:06:11 -0500
commite74cd4b4ef013bf211b0ed703b1e2d3ea1fc6dd8 (patch)
tree7bd16a321579dfe7d39d97e8c3ea9e3a42ae3b4f
parentf3dfd636343904a01681c80e91b44aa00ce33f2e (diff)
downloadinfinitytier-e74cd4b4ef013bf211b0ed703b1e2d3ea1fc6dd8.tar.gz
infinitytier-e74cd4b4ef013bf211b0ed703b1e2d3ea1fc6dd8.zip
A little more cleanup.
-rw-r--r--node/AtomicCounter.hpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/node/AtomicCounter.hpp b/node/AtomicCounter.hpp
index d58c4b56..a42a18d4 100644
--- a/node/AtomicCounter.hpp
+++ b/node/AtomicCounter.hpp
@@ -28,7 +28,6 @@
#define ZT_ATOMICCOUNTER_HPP
#include "Constants.hpp"
-#include "NonCopyable.hpp"
#ifndef __GNUC__
#include <atomic>
@@ -39,13 +38,10 @@ namespace ZeroTier {
/**
* Simple atomic counter supporting increment and decrement
*/
-class AtomicCounter : NonCopyable
+class AtomicCounter
{
public:
- AtomicCounter()
- {
- _v = 0;
- }
+ AtomicCounter() { _v = 0; }
inline int load() const
{
@@ -75,6 +71,9 @@ public:
}
private:
+ AtomicCounter(const AtomicCounter &) {}
+ const AtomicCounter &operator=(const AtomicCounter &) { return *this; }
+
#ifdef __GNUC__
int _v;
#else