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

switch from static mutex to member mutex

parent b2a1867c
No related branches found
Tags v0.8.3
No related merge requests found
......@@ -13,9 +13,7 @@ namespace armarx::armem::vision::occupancy_grid::client
const std::string& providerName,
const std::int64_t& timestamp)
{
static std::mutex mutex;
std::lock_guard g{mutex};
std::lock_guard g{writeMutex};
const auto result = memoryWriter().addSegment(properties().coreSegmentName, providerName);
......
......@@ -55,8 +55,10 @@ namespace armarx::armem::vision::occupancy_grid::client
protected:
std::string propertyPrefix() const override;
Properties defaultProperties() const override;
};
private:
std::mutex writeMutex;
};
} // namespace armarx::armem::vision::occupancy_grid::client
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