• Giuseppe Ottaviano's avatar
    Use CoreCachedSharedPtr in Singleton · 937fc980
    Giuseppe Ottaviano authored
    Summary: `CoreCachedSharedPtr` is almost as fast as `ReadMostlySharedPtr`, so we can use it to have a better default that does not have pathological behavior under heavy contention. `try_get_fast()` is still useful if we need to squeeze out the last cycle.
    
    Reviewed By: philippv, luciang
    
    Differential Revision: D29812053
    
    fbshipit-source-id: 49e9e53444f8099dbfe13e36c3c07c1b57bb89fb
    937fc980
CoreCachedSharedPtr.h 5.05 KB