eccodes/eccodes-thread-init-fix.patch
2024-09-01 12:51:55 +02:00

47 lines
1.7 KiB
Diff

--- eccodes-2.36.0-Source.unchanged/src/accessor/grib_accessor_class_bufr_elements_table.cc 2024-06-24 12:52:58.000000000 +0200
+++ eccodes-2.36.0-Source/src/accessor/grib_accessor_class_bufr_elements_table.cc 2024-07-23 19:38:30.211681092 +0200
@@ -1,4 +1,3 @@
-
/*
* (C) Copyright 2005- ECMWF.
*
@@ -28,7 +27,7 @@ static void thread_init()
static int once = 0;
static omp_nest_lock_t mutex1;
-void thread_init()
+static void thread_init()
{
GRIB_OMP_CRITICAL(lock_grib_accessor_class_bufr_elements_table_c)
{
--- eccodes-2.36.0-Source.unchanged/src/accessor/grib_accessor_class_codetable.cc 2024-06-24 12:52:58.000000000 +0200
+++ eccodes-2.36.0-Source/src/accessor/grib_accessor_class_codetable.cc 2024-07-23 19:38:30.248680436 +0200
@@ -20,7 +20,7 @@ grib_accessor_class* grib_accessor_class
static pthread_once_t once = PTHREAD_ONCE_INIT;
static pthread_mutex_t mutex1 = PTHREAD_MUTEX_INITIALIZER;
-void thread_init()
+static void thread_init()
{
pthread_mutexattr_t attr;
pthread_mutexattr_init(&attr);
@@ -32,7 +32,7 @@ void thread_init()
static int once = 0;
static omp_nest_lock_t mutex1;
-void thread_init()
+static void thread_init()
{
GRIB_OMP_CRITICAL(lock_grib_accessor_class_codetable_c)
{
--- eccodes-2.36.0-Source.unchanged/src/accessor/grib_accessor_class_smart_table.cc 2024-06-24 12:52:58.000000000 +0200
+++ eccodes-2.36.0-Source/src/accessor/grib_accessor_class_smart_table.cc 2024-07-23 19:38:30.248680436 +0200
@@ -30,7 +30,7 @@ static void thread_init()
static int once = 0;
static omp_nest_lock_t mutex;
-void thread_init()
+static void thread_init()
{
GRIB_OMP_CRITICAL(lock_grib_accessor_class_smart_table_c)
{