Skip to content
Snippets Groups Projects
Commit f23d6473 authored by Rainer Kartmann's avatar Rainer Kartmann
Browse files

Lock core segment in addSegment()

parent 154edc1e
No related branches found
No related tags found
No related merge requests found
...@@ -55,6 +55,7 @@ namespace armarx::armem::server ...@@ -55,6 +55,7 @@ namespace armarx::armem::server
if (input.providerSegmentName.size() > 0) if (input.providerSegmentName.size() > 0)
{ {
std::scoped_lock lock(coreSegment->mutex());
try try
{ {
coreSegment->addProviderSegment(input.providerSegmentName); coreSegment->addProviderSegment(input.providerSegmentName);
...@@ -94,6 +95,7 @@ namespace armarx::armem::server ...@@ -94,6 +95,7 @@ namespace armarx::armem::server
return output; return output;
} }
data::CommitResult data::CommitResult
MemoryToIceAdapter::commit(const data::Commit& commitIce, Time timeArrived) MemoryToIceAdapter::commit(const data::Commit& commitIce, Time timeArrived)
{ {
......
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