tfussell / xlnt

:bar_chart: Cross-platform user-friendly xlsx library for C++11+
Other
1.47k stars 415 forks source link

thread-unsafe in multi-thread read #699

Open kinly opened 1 year ago

kinly commented 1 year ago

Two thread-unsafe static variables found in multi-thread read

  1. source/detail/serialization/xlsx_consumer.cpp function: qn; static auto memo = std::unordered_map<...>;
  2. source/styles/number_format.cpp function: builtin_formats; static std::unordered_map<...> formats;

I tried adding thread_local at these place...