mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-13 08:41:16 +00:00
SDK: Fix race condition which lead to frequent segfaults on destruction
This commit is contained in:
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);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user