• Aaryaman Sagar's avatar
    Add tryWLock, tryRLock, tryULock, tryWLock to folly::Synchronized · 35ab212c
    Aaryaman Sagar authored
    Summary:
    Add `try_lock` methods to `folly::Synchronized` and add the corresponding
    extensions to `LockTraits`.  These return `LockedPtr`s that are valid and
    convert to true when the lock operation was successful, null otherwise
    
    override-unit-failure
    
    Reviewed By: yfeldblum, ot
    
    Differential Revision: D7651765
    
    fbshipit-source-id: eb85987a2e4476cd916747dfc2ae69d124690ee6
    35ab212c
Synchronized.h 48.8 KB