tsan:data race in LanguageTag::registerImpl
not important, just reduces noise when running tsan Change-Id: I96de4f9e70c8165f0c1135e24ae7522266aa0c0c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158651 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
#include <rtl/locale.h>
|
||||
#include <o3tl/string_view.hxx>
|
||||
#include <algorithm>
|
||||
#include <atomic>
|
||||
#include <map>
|
||||
#include <mutex>
|
||||
#include <string_view>
|
||||
@@ -759,7 +760,7 @@ LanguageTag::ImplPtr LanguageTag::registerImpl() const
|
||||
ImplPtr pImpl;
|
||||
|
||||
#if OSL_DEBUG_LEVEL > 0
|
||||
static size_t nCalls = 0;
|
||||
static std::atomic_int nCalls = 0;
|
||||
++nCalls;
|
||||
SAL_INFO( "i18nlangtag", "LanguageTag::registerImpl: " << nCalls << " calls");
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user