False data race with tbb::mutex::scoped_lock shown by Parallel Inspector

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.

Any hints what to do about it?

1 envío / 0 nuevos
Para obtener más información sobre las optimizaciones del compilador, consulte el aviso sobre la optimización.