mirror of https://github.com/ecmwf/eccodes.git
Modernisation: Fix mutex name
This commit is contained in:
parent
f2c1a83c2b
commit
b7187d77b2
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue