Commit 0d284ae2 authored by Kai Koehne's avatar Kai Koehne Committed by Qt by Nokia
Browse files

Debugger: Fix race conditions in block mode


Using waitForMessage() in the constructor after registerService() is
_not_ safe: You might get the first message already after the
registerService() and before the waitForMessage() call. Instead,
use QMutex/QWaitCondition to block the initialization. Also make
the use of the block mode explicit, since the service might already
be enabled also for non-blocking modes ...

Change-Id: I387bfe0627c80e2029acff71f86d12cd9ab58de1
Reviewed-by: default avatarKai Koehne <kai.koehne@nokia.com>
parent e1583664
No related merge requests found
Showing with 89 additions and 71 deletions
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment