Because the global ittglobal is initialized in a critical section (here), Clang Thread Sanitizer flags it as a race condition.
We stumbled upon it by calling itt_string_create in a parallel section.
It is not critical, but it forces users to suppress those warnings. Maybe separating the initialization from the lock, and statically initializing the mutex would avoid this issue.
Because the global ittglobal is initialized in a critical section (here), Clang Thread Sanitizer flags it as a race condition. We stumbled upon it by calling itt_string_create in a parallel section.
It is not critical, but it forces users to suppress those warnings. Maybe separating the initialization from the lock, and statically initializing the mutex would avoid this issue.