[AGENT++] Why is start_sync() is called without following end_snych()

Claus Klein claus.klein at arcormail.de
Mon Apr 1 22:49:37 CEST 2019


Hi,

I do not know why this is only locked?

This may result in a deadlock while call Synchronized::~Synchronized().

MibEntry::~MibEntry()
{
    start_synch(); // exclusively get this object.
    // never unlock this object again.

    // explictly call clear() on this list, because it contains pointers
    // to other mib objects which we don't want to delete here
    notifies.clear();
}



More information about the AGENTPP mailing list