Skip to content
  • Aleksy Barcz's avatar
    fixed deadlock in defined initialization · c5e0c414
    Aleksy Barcz authored
    + ParamCachingIPKContainer::GetConfig() would first acquire-unique m_lock, then via UserDefinedIPKContainer::AddConfig() (inheritance) would try to acquire UserDefinedIPKManager::mutex
    + in another thread UserDefinedIPKManager::AddUserDefined() would first acquire-unique UDIM::mutex, then via UDIC::AddUserDefined() would try to acquire m_lock
    + now, UDIM::AddUserDefined() won't hold UDIM::mutex when accessing UDIC
    + also, removed Lock() and Release() methods which were a violation of RAII
    c5e0c414