ion/base/lockguards.h
// Attempts to lock the mutex if the mutex is not already locked by this
// guard. This function never blocks. Returns true if the mutex was
// successfully locked or if this guard has already locked it, and false
// otherwise.
Attempts to lock the mutex if the mutex is not already locked by this
guard. This function never blocks. Returns true if the mutex was
successfully locked or if this guard has already locked it, and false
otherwise.
Attempts to lock the mutex if the mutex is not already locked by this guard . This function never blocks . Returns true if the mutex was successfully locked or if this guard has already locked it and false otherwise .
bool TryLock() {
    if (!is_locked_) {
      is_locked_ = mutex_.TryLock();
    }
    return is_locked_;
  }
bool TryLock ( ) { if ( ! is_locked_ ) { is_locked_ = mutex_ . TryLock ( ) ; } return is_locked_ ; }
Attempts to lock the mutex if the mutex is not already locked by this
guard.
Attempts to lock the mutex if the mutex is not already locked by this guard .