Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Guilhem Saurel
hpp-fcl
Commits
7532f7bb
Unverified
Commit
7532f7bb
authored
Aug 05, 2019
by
Justin Carpentier
Committed by
GitHub
Aug 05, 2019
Browse files
Merge pull request #71 from jmirabel/transform_mutex
Remove mutex Transform3f::lock_
parents
f68ff486
d26d11c2
Changes
2
Hide whitespace changes
Inline
Side-by-side
include/hpp/fcl/math/transform.h
View file @
7532f7bb
...
...
@@ -68,8 +68,6 @@ inline bool areQuatEquals (const Quaternion3f& q1, const Quaternion3f& q2)
/// @brief Simple transform class used locally by InterpMotion
class
Transform3f
{
boost
::
mutex
lock_
;
/// @brief Whether matrix cache is set
mutable
bool
matrix_set
;
/// @brief Matrix cache
...
...
src/math/transform.cpp
View file @
7532f7bb
...
...
@@ -46,7 +46,6 @@ namespace fcl
const
Matrix3f
&
Transform3f
::
getRotationInternal
()
const
{
boost
::
mutex
::
scoped_lock
slock
(
const_cast
<
boost
::
mutex
&>
(
lock_
));
if
(
!
matrix_set
)
{
R
=
q
.
toRotationMatrix
();
...
...
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