False data race with tbb::mutex::scoped_lock shown by Parallel Inspector
In a block of code guarded by a tbb::mutex::scoped_lock Parallel Inspector shows a data race. With a spin_mutex the error message goes away. This is in both in a debug and a release build with TBB_USE_THREADING_TOOLS=1.
Looks like Parallel Inspector is kept silent with ITT_NOTIFY, but for some reason isn't with EnterCriticalSection.