Avoid blocking simulator backend during its construction
authorAlex Blasche <alexander.blasche@digia.com>
Fri, 4 Apr 2014 10:13:18 +0000 (12:13 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 4 Apr 2014 10:23:00 +0000 (12:23 +0200)
commit6a2bd5f43f1b1a3504b4431e15fc0c0fa216c3bc
tree27511b2f0b4a184cdd338b2fe3a1a9eefaa4f483
parent11140e6cb085836255877e141e0a32d61f679b7b
Avoid blocking simulator backend during its construction

This avoids a race condition when QDeclarativePositionSource::start()
is called before the simulator backend has returned from its eventloop.
The disadvantage is that the first returned set of position data may be
invalid until the initial data set was pushed by the emulator.

Change-Id: I6a8b4330bc50ced154afd2a6248bb0dd3e151c9f
Reviewed-by: Rainer Keller <rainer.keller@digia.com>
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
src/plugins/position/simulator/qlocationconnection_simulator.cpp