mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-15 17:41:45 +00:00
SDK: Fix race condition which lead to frequent segfaults on destruction
This commit is contained in:
committed by
Dennis Klein
parent
fd77f2b729
commit
5b47df3014
@@ -183,6 +183,7 @@ class BasicTopology : public AsioBase<Executor, Allocator>
|
|||||||
|
|
||||||
~BasicTopology()
|
~BasicTopology()
|
||||||
{
|
{
|
||||||
|
std::lock_guard<std::mutex> lk(fMtx);
|
||||||
fDDSSession.UnsubscribeFromCommands();
|
fDDSSession.UnsubscribeFromCommands();
|
||||||
try {
|
try {
|
||||||
fChangeStateOp.Cancel(fState);
|
fChangeStateOp.Cancel(fState);
|
||||||
|
Reference in New Issue
Block a user