Fixed mutex for resources
Merge branch 'dennis_branch' of https://github.com/Engman/fly into linda_branch
push