summaryrefslogtreecommitdiff
path: root/ACE/ace/Barrier.h
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2021-03-09 11:49:28 +0100
committerJohnny Willemsen <jwillemsen@remedy.nl>2021-03-09 11:49:28 +0100
commit3a135b20e2c3c3dd407b9b768a411645eca6a7e0 (patch)
tree71301b1d02a56c2137c4e4c1b378aea4acd139a7 /ACE/ace/Barrier.h
parent199259c5d2d5f4a6550382a683f5d54ac482fcd1 (diff)
downloadATCD-3a135b20e2c3c3dd407b9b768a411645eca6a7e0.tar.gz
Various cleanup and use of C++11 features
Diffstat (limited to 'ACE/ace/Barrier.h')
-rw-r--r--ACE/ace/Barrier.h13
1 files changed, 5 insertions, 8 deletions
diff --git a/ACE/ace/Barrier.h b/ACE/ace/Barrier.h
index 58cba3f2610..0f5eccd1f6a 100644
--- a/ACE/ace/Barrier.h
+++ b/ACE/ace/Barrier.h
@@ -4,8 +4,6 @@
/**
* @file Barrier.h
*
- * Moved from Synch.h.
- *
* @author Douglas C. Schmidt <d.schmidt@vanderbilt.edu>
*/
//==========================================================================
@@ -38,9 +36,9 @@ class ACE_Export ACE_Barrier
{
public:
ACE_Barrier (unsigned int, const ACE_TCHAR * = 0, void * = 0) {}
- ~ACE_Barrier (void) {}
- int wait (void) { ACE_NOTSUP_RETURN (-1); }
- void dump (void) const {}
+ ~ACE_Barrier () = default;
+ int wait () { ACE_NOTSUP_RETURN (-1); }
+ void dump () const {}
};
ACE_END_VERSIONED_NAMESPACE_DECL
@@ -149,9 +147,8 @@ protected:
ACE_Sub_Barrier *sub_barrier_[2];
private:
- // = Prevent assignment and initialization.
- void operator= (const ACE_Barrier &);
- ACE_Barrier (const ACE_Barrier &);
+ void operator= (const ACE_Barrier &) = delete;
+ ACE_Barrier (const ACE_Barrier &) = delete;
};
/**