summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/tests/EC_Multiple/EC_Multiple.h
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2020-12-30 10:03:07 +0100
committerJohnny Willemsen <jwillemsen@remedy.nl>2020-12-30 10:03:07 +0100
commit31d71bffb2bd36047dd8a8d1110abb8076115b5f (patch)
tree7a4bd90dc4fa65df5793b9b1b56f4afefffbaa82 /TAO/orbsvcs/tests/EC_Multiple/EC_Multiple.h
parent27b5b30887835ad4ecd33643fbb1f7ab0a444d9c (diff)
downloadATCD-31d71bffb2bd36047dd8a8d1110abb8076115b5f.tar.gz
Make use of std atomic and unique_ptr
* TAO/orbsvcs/tests/EC_Multiple/EC_Multiple.cpp: * TAO/orbsvcs/tests/EC_Multiple/EC_Multiple.h: * TAO/orbsvcs/tests/EC_Multiple/README:
Diffstat (limited to 'TAO/orbsvcs/tests/EC_Multiple/EC_Multiple.h')
-rw-r--r--TAO/orbsvcs/tests/EC_Multiple/EC_Multiple.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/TAO/orbsvcs/tests/EC_Multiple/EC_Multiple.h b/TAO/orbsvcs/tests/EC_Multiple/EC_Multiple.h
index 9ba503ad3fe..c0e92439226 100644
--- a/TAO/orbsvcs/tests/EC_Multiple/EC_Multiple.h
+++ b/TAO/orbsvcs/tests/EC_Multiple/EC_Multiple.h
@@ -27,6 +27,7 @@
#include "orbsvcs/Channel_Clients_T.h"
#include "orbsvcs/Event/EC_Gateway_Sched.h"
#include "orbsvcs/CosNamingC.h"
+#include <atomic>
class Test_ECG;
@@ -353,11 +354,11 @@ private:
// to setup all the consumers.
// The suppliers wait on the condition variable.
- ACE_Atomic_Op<TAO_SYNCH_MUTEX,int> running_suppliers_;
+ std::atomic<int> running_suppliers_;
// keep track of how many suppliers are still running so we shutdown
// at the right moment.
- ACE_Atomic_Op<TAO_SYNCH_MUTEX,int> running_consumers_;
+ std::atomic<int> running_consumers_;
// keep track of how many consumers are still running so we shutdown
// at the right moment.