tfussell / xlnt

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

Update number_format.cpp. builtin_formats() is not thread-safe #742

Open lvyangdev opened 2 weeks ago

lvyangdev commented 2 weeks ago

When generating xlnt::workbook objects concurrently in a multithreaded environment, builtin_formats() is called, and the use of static variables within builtin_formats() is not thread-safe.