Skip to content

Commit 1ce107f

Browse files
N-Dekkerdzenanz
authored andcommitted
STYLE: Remove lock MersenneTwisterRandomVariateGenerator ResetNextSeed
`m_StaticDiffer` is already atomic, so there is no need to lock the mutex here.
1 parent 7caf7e3 commit 1ce107f

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

Modules/Core/Common/src/itkMersenneTwisterRandomVariateGenerator.cxx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ void
8686
MersenneTwisterRandomVariateGenerator::ResetNextSeed()
8787
{
8888
itkInitGlobalsMacro(PimplGlobals);
89-
const std::lock_guard<std::recursive_mutex> lockGuard(m_PimplGlobals->m_StaticInstanceLock);
9089
m_PimplGlobals->m_StaticDiffer = 0;
9190
}
9291

0 commit comments

Comments
 (0)