Debugger: fix race condition in block mode
authorKai Koehne <kai.koehne@digia.com>
Tue, 23 Apr 2013 09:49:36 +0000 (11:49 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 23 Apr 2013 13:40:31 +0000 (15:40 +0200)
commita028d463508ed0612f7fd1d2b1365c5c091dc1b4
tree9ac4a2f48d765ff2d022acf6797c99764efe627f
parent33e0dd64f9cb4e517d1fc126e645b341803fb481
Debugger: fix race condition in block mode

Make sure that the GUI thread & debugger thread actually sync on startup. So far
the GUI thread would block forever in waitCondition.wait() if the debugger thread
spawns & receives the HELLO before.

Also remove unused code and rename variables to make their use more obvious.

Change-Id: I8285e8860667496d491807e696535353d9f14dea
Reviewed-by: Aurindam Jana <aurindam.jana@digia.com>
src/qml/debugger/qqmldebugserver.cpp