Skip to content

Commit

Permalink
shm: fix double unlock()
Browse files Browse the repository at this point in the history
  • Loading branch information
rbx committed Jan 12, 2022
1 parent c04958e commit f79a071
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fairmq/shmem/Manager.h
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,7 @@ class Manager
auto r = fRegions.emplace(id, std::make_unique<UnmanagedRegion>(fShmId, 0, true, std::move(cfg)));
r.first->second->InitializeQueues();
r.first->second->StartAckSender();
lockedShmLock.lock();
return r.first->second.get();
} catch (std::out_of_range& oor) {
LOG(error) << "Could not get remote region with id '" << id << "'. Does the region creator run with the same session id?";
Expand Down

0 comments on commit f79a071

Please sign in to comment.