Merge pull request #31 from antoinealb/master

Use CPPUmock for critical sections.