Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Ben Boeckel
QtTesting
Commits
b2748280
Commit
b2748280
authored
Mar 03, 2007
by
Clinton Stimpson
Browse files
COMP: Fix windows build errors.
parent
e5a5666c
Changes
1
Hide whitespace changes
Inline
Side-by-side
pqThreadedEventSource.cxx
View file @
b2748280
...
...
@@ -107,7 +107,7 @@ int pqThreadedEventSource::getNextEvent(
object
=
this
->
Internal
->
CurrentObject
;
command
=
this
->
Internal
->
CurrentCommand
;
arguments
=
this
->
Internal
->
CurrentArgument
;
this
->
Internal
->
GotEvent
=
false
;
this
->
Internal
->
GotEvent
=
0
;
this
->
guiAcknowledge
();
if
(
object
==
QString
::
null
)
...
...
@@ -127,7 +127,7 @@ void pqThreadedEventSource::relayEvent(QString object, QString command, QString
this
->
Internal
->
CurrentObject
=
object
;
this
->
Internal
->
CurrentCommand
=
command
;
this
->
Internal
->
CurrentArgument
=
arguments
;
this
->
Internal
->
GotEvent
=
true
;
this
->
Internal
->
GotEvent
=
1
;
}
...
...
@@ -155,27 +155,27 @@ void pqThreadedEventSource::stop()
bool
pqThreadedEventSource
::
waitForGUI
()
{
this
->
Internal
->
Waiting
=
true
;
this
->
Internal
->
Waiting
=
1
;
while
(
this
->
Internal
->
Waiting
==
true
&&
!
this
->
Internal
->
ShouldStop
)
while
(
this
->
Internal
->
Waiting
==
1
&&
this
->
Internal
->
ShouldStop
==
0
)
{
pqInternal
::
ThreadHelper
::
msleep
(
50
);
}
this
->
Internal
->
Waiting
=
false
;
this
->
Internal
->
Waiting
=
0
;
return
!
this
->
Internal
->
ShouldStop
;
}
void
pqThreadedEventSource
::
guiAcknowledge
()
{
while
(
this
->
Internal
->
Waiting
==
false
)
while
(
this
->
Internal
->
Waiting
==
0
)
{
pqInternal
::
ThreadHelper
::
msleep
(
10
);
}
this
->
Internal
->
Waiting
=
false
;
this
->
Internal
->
Waiting
=
0
;
}
void
pqThreadedEventSource
::
done
(
int
success
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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