Added tests and documentation for critical sections
Merge branch 'master' of https://github.com/pierluca/platform-abstraction