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
mobile_robotics
ADC
ADC_2021
iri_adc_jury_server
Commits
b8b38d3a
Commit
b8b38d3a
authored
Oct 28, 2021
by
Fernando Herrero
Browse files
Unlock mutex on sleeps
parent
c37febb8
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/adc_jury_server_alg_node.cpp
View file @
b8b38d3a
...
...
@@ -96,7 +96,11 @@ bool AdcJuryServerAlgNode::jury_modeCallback(iri_adc_msgs::jury_mode::Request &r
//do operations with req and output on res
if
(
this
->
config_
.
block_service
)
{
this
->
alg_
.
unlock
();
sleep
(
this
->
config_
.
block_service_time
);
this
->
alg_
.
lock
();
}
//res.data2 = req.data1 + my_var;
...
...
@@ -183,7 +187,9 @@ void AdcJuryServerAlgNode::adc_juryGetFeedbackCallback(iri_adc_msgs::adc_juryFee
//ROS_INFO("AdcJuryServerAlgNode::adc_juryGetFeedbackCallback feedback.status='%s'", feedback->status.c_str());
if
(
this
->
config_
.
block_feedback
)
{
this
->
alg_
.
unlock
();
sleep
(
this
->
config_
.
block_feedback_time
);
this
->
alg_
.
lock
();
}
this
->
alg_
.
unlock
();
}
...
...
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