From 1802b91e550d4ada85d00174fc17fe4ab35d24cc Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Sat, 18 Apr 2009 17:41:37 +0200 Subject: [PATCH] RemotePlugin: allow waitForInitDone() without busy waiting An additional parameter to waitForInitDone() allows to disable busy waiting which could be desired in various places to avoid deadlocks. --- include/remote_plugin.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/remote_plugin.h b/include/remote_plugin.h index 6004947d6..c678fbd8b 100644 --- a/include/remote_plugin.h +++ b/include/remote_plugin.h @@ -681,9 +681,10 @@ public: return m_process.state() != QProcess::NotRunning; } - inline void waitForInitDone( void ) + inline void waitForInitDone( bool _busy_waiting = true ) { - m_failed = waitForMessage( IdInitDone, true ).id != IdInitDone; + m_failed = waitForMessage( IdInitDone, + _busy_waiting ).id != IdInitDone; } virtual bool processMessage( const message & _m );