Skip to content
Snippets Groups Projects
Commit 1e3f3d28 authored by jsi's avatar jsi
Browse files

removed a deadlock

parent 74df41c4
No related branches found
No related tags found
No related merge requests found
......@@ -170,10 +170,16 @@ namespace armarx
bool doCalculation = false;
{
ScopedLock lock(accessMutex);
doCalculation = requested && newTargetSet;
newTargetSet = false;
ScopedTryLock lock(accessMutex);
if (lock.owns_lock())
{
doCalculation = requested && newTargetSet;
newTargetSet = false;
}
else
{
return;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment