Can the ScopedLocked be used without thinking about compiler optimization, inline functions and so on??
inline void method1()
const ScopedLock myScopedLock (myCriticalSection);
// do something
When doing a release build with optimization, can the locked scope become larger than intended because the code is merged together during inlining?
Thanx for answers