Skip to content

Commit

Permalink
Merge branch 'master' into DOCGroup#2163-Race-condition-in-ACE_Future…
Browse files Browse the repository at this point in the history
…-double-checked-locking-pattern-code
  • Loading branch information
jwillemsen authored Jan 14, 2024
2 parents b94f1dc + 8c49e7b commit 6695073
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ACE/ace/Barrier.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ ACE_END_VERSIONED_NAMESPACE_DECL

#else /* ACE_HAS_THREADS */

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

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

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

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

0 comments on commit 6695073

Please sign in to comment.