Sfoglia il codice sorgente

C++11 cleanup for util/mutexlock.h.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=213398583
naive_version
costan 6 anni fa
committed by Victor Costan
parent
commit
c43565dd39
1 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. +3
    -3
      util/mutexlock.h

+ 3
- 3
util/mutexlock.h Vedi File

@ -28,11 +28,11 @@ class SCOPED_LOCKABLE MutexLock {
}
~MutexLock() UNLOCK_FUNCTION() { this->mu_->Unlock(); }
MutexLock(const MutexLock&) = delete;
MutexLock& operator=(const MutexLock&) = delete;
private:
port::Mutex *const mu_;
// No copying allowed
MutexLock(const MutexLock&);
void operator=(const MutexLock&);
};
} // namespace leveldb

Caricamento…
Annulla
Salva