Skip to content

Commit

Permalink
STYLE: Rename MersenneTwisterGlobals data member from "Lock" to "Mutex"
Browse files Browse the repository at this point in the history
Following pull request #4217
commit 0150e46
STYLE: Rename private and internal data members from "Lock" to "Mutex"
  • Loading branch information
N-Dekker authored and dzenanz committed Nov 21, 2023
1 parent dad0d82 commit 476d9e7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ struct MersenneTwisterGlobals
~MersenneTwisterGlobals() = default;

MersenneTwisterRandomVariateGenerator::Pointer m_StaticInstance{};
std::mutex m_StaticInstanceLock{};
std::mutex m_StaticInstanceMutex{};
std::atomic<MersenneTwisterRandomVariateGenerator::IntegerType> m_StaticDiffer{};
};

Expand Down Expand Up @@ -72,7 +72,7 @@ MersenneTwisterRandomVariateGenerator::Pointer
MersenneTwisterRandomVariateGenerator::GetInstance()
{
itkInitGlobalsMacro(PimplGlobals);
const std::lock_guard<std::mutex> lockGuard(m_PimplGlobals->m_StaticInstanceLock);
const std::lock_guard<std::mutex> lockGuard(m_PimplGlobals->m_StaticInstanceMutex);

if (!m_PimplGlobals->m_StaticInstance)
{
Expand Down

0 comments on commit 476d9e7

Please sign in to comment.