• Kai Koehne's avatar
    Debugger: Fix race conditions in block mode · 0d284ae2
    Kai Koehne authored
    
    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>
    0d284ae2