|Compare this with previous
“exception safe” attempts. This is an exception safe no-brainer. The code
after the lock is constructed can be modified in crazy ways: returns, gotos,
exceptions. Nothing will break its “resource correctness.”
|Normally the critical
section object is embedded in some higher-level object that it protects.