Skip to content
Snippets Groups Projects
Commit ebdb2235 authored by Fabian Tërnava's avatar Fabian Tërnava
Browse files

disable shadowing of lock l

parent 1a97bf0e
No related branches found
No related tags found
1 merge request!489fix skillmanager and provider deadlocks when callingSubskills, query executionsatus and descriptions and stopping subskills at the same time
...@@ -315,6 +315,7 @@ namespace armarx::plugins ...@@ -315,6 +315,7 @@ namespace armarx::plugins
{ {
break; break;
} }
} }
std::this_thread::sleep_for(std::chrono::milliseconds(20)); std::this_thread::sleep_for(std::chrono::milliseconds(20));
...@@ -370,7 +371,7 @@ namespace armarx::plugins ...@@ -370,7 +371,7 @@ namespace armarx::plugins
while (true) while (true)
{ {
{ {
std::scoped_lock l(runtime.skillStatusesMutex); std::scoped_lock l2(runtime.skillStatusesMutex);
auto status = runtime.statusUpdate; auto status = runtime.statusUpdate;
if (status.hasBeenTerminated()) if (status.hasBeenTerminated())
......
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