From b7187d77b2bda661d553fc3f8cd9815cfc13de76 Mon Sep 17 00:00:00 2001 From: Eugen Betke Date: Mon, 21 Oct 2024 17:37:29 +0200 Subject: [PATCH] Modernisation: Fix mutex name --- src/grib_iterator_class.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/grib_iterator_class.cc b/src/grib_iterator_class.cc index 0c0e3d6b3..fbf208818 100644 --- a/src/grib_iterator_class.cc +++ b/src/grib_iterator_class.cc @@ -34,14 +34,14 @@ static void init_mutex() } #elif GRIB_OMP_THREADS static int once = 0; -static omp_nest_lock_t mutex1; +static omp_nest_lock_t mutex; static void init_mutex() { GRIB_OMP_CRITICAL(lock_grib_accessor_class_c) { if (once == 0) { - omp_init_nest_lock(&mutex1); + omp_init_nest_lock(&mutex); once = 1; } }