From b1973a3586d38260392a65fdecbc38e8f473b779 Mon Sep 17 00:00:00 2001 From: Max Date: Sun, 9 Jan 2022 20:02:07 +0100 Subject: [PATCH] FxCalculator global init fix for race condition with multiple threads (#318) --- src/calculate_bucket.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calculate_bucket.hpp b/src/calculate_bucket.hpp index aead712ff..8d1cbcdac 100644 --- a/src/calculate_bucket.hpp +++ b/src/calculate_bucket.hpp @@ -209,8 +209,8 @@ class FxCalculator { this->rmap.resize(kBC); if (!initialized) { - initialized = true; load_tables(); + initialized = true; } }