eliminate deprecated omp_set_nested()

This commit is contained in:
Cristy
2026-04-15 20:32:07 -04:00
parent 3da25c642d
commit e529068b3e
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -181,11 +181,11 @@ static inline void SetOpenMPMaximumThreads(const int magick_unused(threads))
}
#if defined(MAGICKCORE_OPENMP_SUPPORT)
static inline void SetOpenMPNested(const int value)
static inline void SetOpenMPMaxActiveLevels(const int value)
{
omp_set_nested(value);
omp_set_max_active_levels(value ? 2 : 1);
#else
static inline void SetOpenMPNested(const int magick_unused(value))
static inline void SetOpenMPMaxActiveLevels(const int magick_unused(value))
{
magick_unreferenced(value);
#endif
+1 -1
View File
@@ -238,7 +238,7 @@ WandExport MagickBooleanType MagickCommandGenesis(ImageInfo *image_info,
}
else
{
SetOpenMPNested(1);
SetOpenMPMaxActiveLevels(1);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
# pragma omp parallel for shared(status)
#endif