We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca18a05 commit fc4744fCopy full SHA for fc4744f
MagickCore/mutex.h
@@ -55,7 +55,8 @@ static inline void DestroyMagickMutex(void)
55
static inline void InitializeMagickMutex(void)
56
{
57
#if defined(MAGICKCORE_OPENMP_SUPPORT)
58
- omp_init_lock(&translation_unit_mutex);
+ if (translation_unit_initialized == MagickFalse)
59
+ omp_init_lock(&translation_unit_mutex);
60
translation_unit_initialized=MagickTrue;
61
#endif
62
}
0 commit comments