Skip to content

Commit

Permalink
Change to C++ std::atomic
Browse files Browse the repository at this point in the history
  • Loading branch information
shuston committed Dec 1, 2023
1 parent 7e06ab1 commit 4939d6b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ACE/ace/Barrier.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ ACE_END_VERSIONED_NAMESPACE_DECL

#else /* ACE_HAS_THREADS */

#include "ace/Atomic_Op.h"
#include <atomic>
#include "ace/Condition_Thread_Mutex.h"

ACE_BEGIN_VERSIONED_NAMESPACE_DECL
Expand All @@ -64,7 +64,7 @@ struct ACE_Export ACE_Sub_Barrier
ACE_Condition_Thread_Mutex barrier_finished_;

/// Number of threads that are still running.
ACE_Atomic_Op<ACE_Thread_Mutex, int> running_threads_;
std::atomic<int> running_threads_;

/// Dump the state of an object.
void dump () const;
Expand Down

0 comments on commit 4939d6b

Please sign in to comment.