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
Humanoid Path Planner
hpp-core
Commits
5226ae5a
Commit
5226ae5a
authored
Oct 21, 2013
by
Florent Lamiraux
Browse files
Protect access to roadmap by semaphores.
parent
8c28b562
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/problem.cc
View file @
5226ae5a
...
...
@@ -349,6 +349,7 @@ namespace hpp {
// Add direct path to roadmap if not already included
CkwsRoadmapShPtr
roadmap
=
roadmapBuilder
()
->
roadmap
();
roadmap
->
beginCriticalSectionReadWrite
();
hppDout
(
info
,
"Number of edges in roadmap before inserting nodes = "
<<
roadmap
->
countEdges
());
...
...
@@ -390,6 +391,7 @@ namespace hpp {
"Number edges in roadmap after attempt at adding edge = "
<<
roadmap
->
countEdges
());
}
roadmap
->
endCriticalSectionReadWrite
();
inOutPath
->
appendDirectPath
(
directPath
);
// Add the path to vector of paths of the problem.
addPath
(
KIT_DYNAMIC_PTR_CAST
(
CkwsPath
,
inOutPath
->
clone
()));
...
...
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