ion/base/lockguards.h
// Resets the variable's value to the initial value (passed to the
// constructor), unlocks the mutex, and returns the previous value.
Resets the variable's value to the initial value (passed to the
constructor), unlocks the mutex, and returns the previous value.
Resets the variable ' s value to the initial value ( passed to the constructor ) unlocks the mutex and returns the previous value .
const T ResetAndUnlock() {
    const T ret = current_value_;
    current_value_ = initial_value_;
    Unlock();
    return ret;
  }
const T ResetAndUnlock ( ) { const T ret = current_value_ ; current_value_ = initial_value_ ; Unlock ( ) ; return ret ; }
Resets the variable's value to the initial value (passed to the
constructor), unlocks the mutex, and returns the previous value.
Resets the variable ' s value to the initial value ( passed to the constructor ) unlocks the mutex and returns the previous value .