Skip to content

Commit

Permalink
Uncomment simple once_flag definition
Browse files Browse the repository at this point in the history
  • Loading branch information
jmlapre committed Feb 25, 2025
1 parent e98ea8a commit 2344925
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions sstmac/replacements/mutex
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@

namespace std {

#if __cplusplus >= 201103L
using mutex = sstmac::sw::stdMutex;
using recursive_mutex = sstmac::sw::stdRecursiveMutex;

// #if __cplusplus >= 201103L
// using mutex = sstmac::sw::stdMutex;
// using recursive_mutex = sstmac::sw::stdRecursiveMutex;
//
// struct once_flag {
// constexpr once_flag() noexcept : called(false) {}
// bool called;
Expand All @@ -31,11 +31,11 @@ using recursive_mutex = sstmac::sw::stdRecursiveMutex;
// flag.called = true;
// }
// #else
// struct once_flag {
// once_flag() : called(false) {}
// bool called;
// };
#endif
struct once_flag {
once_flag() : called(false) {}
bool called;
};
// #endif


}
Expand Down

0 comments on commit 2344925

Please sign in to comment.