Modernisation: Fix mutex name

This commit is contained in:
Eugen Betke 2024-10-21 17:37:29 +02:00
parent f2c1a83c2b
commit b7187d77b2
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}
}