Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Instrument Control
NomadSpecialModules
Commits
ee64cc8d
Commit
ee64cc8d
authored
Feb 01, 2017
by
yannick legoc
Browse files
Added test for subscriber in tas::RemoteMatlabPub
parent
fe13ab42
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/controllers/remotetas/RemoteMatlabPub.cpp
View file @
ee64cc8d
...
...
@@ -54,19 +54,23 @@ RemoteMatlabPub::RemoteMatlabPub(const RemoteMatlabPub& controller) :
RemoteMatlabPub
::~
RemoteMatlabPub
()
{
//
Stop
the subscriber
m_subscriber
->
cancel
();
//
Test
the subscriber
if
(
m_subscriber
.
get
()
!=
0
)
{
//
T
he subscriber
thread terminates
m_subscriber
Thread
->
join
();
//
Stop t
he subscriber
m_subscriber
->
cancel
();
//
Notify the application
m_
p
ub
lisher
->
sendEnd
();
//
The subscriber thread terminates
m_
s
ub
scriberThread
->
join
();
//
Wait for the termin
ation
application
::
State
state
=
m_matlabApplication
->
waitFor
();
//
Notify the applic
ation
m_publisher
->
sendEnd
();
cout
<<
"Matlab application terminated with state "
<<
application
::
toString
(
state
)
<<
endl
;
// Wait for the termination
application
::
State
state
=
m_matlabApplication
->
waitFor
();
cout
<<
"Matlab application terminated with state "
<<
application
::
toString
(
state
)
<<
endl
;
}
}
void
RemoteMatlabPub
::
postConfiguration
()
{
...
...
Write
Preview
Markdown
is supported
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