MCPcopy Create free account
hub / github.com/apache/brpc / LockGuardBase

Method LockGuardBase

src/bvar/utils/lock_timer.h:195–198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

193 DISALLOW_COPY_AND_ASSIGN(LockGuardBase);
194public:
195 LockGuardBase(Mutex& m)
196 : _timer(m), _lock_guard(m.mutex()) {
197 _timer.timer.stop();
198 }
199private:
200 // This trick makes the recoding happens after the destructor of _lock_guard
201 struct TimerAndMutex {

Callers

nothing calls this directly

Calls 2

mutexMethod · 0.45
stopMethod · 0.45

Tested by

no test coverage detected