Skip to content
Snippets Groups Projects
  • Nat Goodspeed's avatar
    4fce6dc4
    DRTVWR-493: Permit LLParamSingleton::initSingleton() circularity. · 4fce6dc4
    Nat Goodspeed authored
    This was forbidden, but AndreyK points out cases in which LLParamSingleton::
    initSingleton() should in fact be allowed to circle back to its own instance()
    method. Use a recursive_mutex instead of plain mutex to permit that; remove
    LL_ERRS preventing it.
    
    Add LLParamSingleton::instance() method that calls
    LLParamSingleton::getInstance(). Inheriting LLSingleton::instance() called
    LLSingleton::getInstance() -- not at all what we want.
    
    Add LLParamSingleton unit tests.
    4fce6dc4
    History
    DRTVWR-493: Permit LLParamSingleton::initSingleton() circularity.
    Nat Goodspeed authored
    This was forbidden, but AndreyK points out cases in which LLParamSingleton::
    initSingleton() should in fact be allowed to circle back to its own instance()
    method. Use a recursive_mutex instead of plain mutex to permit that; remove
    LL_ERRS preventing it.
    
    Add LLParamSingleton::instance() method that calls
    LLParamSingleton::getInstance(). Inheriting LLSingleton::instance() called
    LLSingleton::getInstance() -- not at all what we want.
    
    Add LLParamSingleton unit tests.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.