Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
780606e8
Commit
780606e8
authored
Jun 14, 2014
by
Don Gagne
Browse files
Limit time in processEvents
This allows other threads to signal
parent
74690d82
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/qgcunittest/MultiSignalSpy.cc
View file @
780606e8
...
...
@@ -218,7 +218,7 @@ bool MultiSignalSpy::waitForSignalByIndex(
Q_ASSERT
(
spy
);
while
(
spy
->
count
()
==
0
&&
!
_timeout
)
{
QCoreApplication
::
processEvents
(
QEventLoop
::
AllEvents
|
QEventLoop
::
WaitForMoreEvents
);
QCoreApplication
::
processEvents
(
QEventLoop
::
AllEvents
|
QEventLoop
::
WaitForMoreEvents
,
500
);
}
// Clean up and return status
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment