Reduce the amount of mutexed code


Change-Id: Ic0dfe488ba8aafb0f3ca3a2b6209d59484d07af8
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
commit0ac5180d59bcdf66d9c9f75432a36713beee308d
parent39997e31218e9c233f52668cbd730f8d871e0ab9
authorPaolo Angelelli <paolo.angelelli@qt.io>
committerPaolo Angelelli <paolo.angelelli@qt.io>
commit timeTue, 28 Feb 2017 10:27:19 +0000