Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
qt-creator
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tobias Hunger
qt-creator
Commits
2ca76d3d
Commit
2ca76d3d
authored
15 years ago
by
con
Browse files
Options
Downloads
Patches
Plain Diff
Realize when the remote application has finished.
parent
2ab27a34
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tests/manual/trk/launcher.cpp
+9
-9
9 additions, 9 deletions
tests/manual/trk/launcher.cpp
tests/manual/trk/trkutils.h
+1
-0
1 addition, 0 deletions
tests/manual/trk/trkutils.h
with
10 additions
and
9 deletions
tests/manual/trk/launcher.cpp
+
9
−
9
View file @
2ca76d3d
...
...
@@ -122,7 +122,6 @@ private:
void
trkWrite
(
const
TrkMessage
&
msg
);
// convienience messages
void
sendTrkInitialPing
();
void
waitForTrkFinished
();
void
sendTrkAck
(
byte
token
);
// kill process and breakpoints
...
...
@@ -138,6 +137,7 @@ private:
void
handleWaitForFinished
(
const
TrkResult
&
result
);
void
handleStop
(
const
TrkResult
&
result
);
void
handleSupportMask
(
const
TrkResult
&
result
);
void
waitForTrkFinished
(
const
TrkResult
&
data
);
void
handleAndReportCreateProcess
(
const
TrkResult
&
result
);
void
handleResult
(
const
TrkResult
&
data
);
...
...
@@ -307,14 +307,9 @@ void Adapter::sendTrkInitialPing()
queueTrkMessage
(
msg
);
}
void
Adapter
::
waitForTrkFinished
()
void
Adapter
::
waitForTrkFinished
(
const
TrkResult
&
result
)
{
TrkMessage
msg
;
// initiate one last roundtrip to ensure all is flushed
msg
.
code
=
0x00
;
// Ping
msg
.
token
=
nextTrkWriteToken
();
msg
.
callBack
=
CB
(
handleWaitForFinished
);
queueTrkMessage
(
msg
);
sendTrkMessage
(
TrkPing
,
CB
(
handleWaitForFinished
));
}
void
Adapter
::
sendTrkAck
(
byte
token
)
...
...
@@ -508,6 +503,11 @@ void Adapter::handleResult(const TrkResult &result)
case
TrkNotifyDeleted
:
{
// NotifyDeleted
logMessage
(
prefix
+
"NOTE: LIBRARY UNLOAD: "
+
str
);
sendTrkAck
(
result
.
token
);
const
char
*
data
=
result
.
data
.
data
();
ushort
itemType
=
extractShort
(
data
);
if
(
itemType
==
0
)
{
// process
sendTrkMessage
(
TrkDisconnect
,
CB
(
waitForTrkFinished
));
}
break
;
}
case
TrkNotifyProcessorStarted
:
{
// NotifyProcessorStarted
...
...
@@ -602,7 +602,7 @@ void Adapter::handleCreateProcess(const TrkResult &result)
void
Adapter
::
handleWaitForFinished
(
const
TrkResult
&
result
)
{
logMessage
(
" FINISHED: "
+
stringFromArray
(
result
.
data
));
//
qApp->exit(
1
);
qApp
->
exit
(
0
);
}
void
Adapter
::
handleSupportMask
(
const
TrkResult
&
result
)
...
...
This diff is collapsed.
Click to expand it.
tests/manual/trk/trkutils.h
+
1
−
0
View file @
2ca76d3d
...
...
@@ -42,6 +42,7 @@ namespace trk {
enum
Command
{
TrkPing
=
0x00
,
TrkConnect
=
0x01
,
TrkDisconnect
=
0x02
,
TrkVersions
=
0x04
,
TrkSupported
=
0x05
,
TrkCpuType
=
0x06
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment