Skip to content
  • Mukund Sivaraman's avatar
    [2198] Add Mutex::tryLock() and make lock methods public · b09b4308
    Mukund Sivaraman authored
    tryLock() is necessary inside InterprocessSyncFile. It also doesn't
    make sense afterwards to make a dynamically constructed Mutex::Locker
    that lives after the basic block is exited. So lock() and unlock()
    have also been made public.
    
    I've added comments to discourage the use of these methods directly
    and use the Mutex::Locker where applicable.
    b09b4308