ecal icon indicating copy to clipboard operation
ecal copied to clipboard

Potential deadlock in CSubGate

Open Kerstin-Keller opened this issue 2 years ago • 0 comments

CSubGate might deadlock (in combination with other lock) if some action is taken within a callback. Atm, the complete subgate is locked during the execution time of the callback. It would be better if the SubGate was locked only during the phase of accumulating the necessary data

CSubGate internal map should have shared_ptr of DataReaders instead of a raw pointer. That way, copies of the DataReader pointers can be made, and the locking does not need to last the complete callback.

Kerstin-Keller avatar Jul 18 '22 17:07 Kerstin-Keller