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

Method lock

src/bvar/utils/lock_timer.h:249–253  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

247
248 operator std::unique_lock<typename Mutex::mutex_type>&() { return _lock; }
249 void lock() {
250 _timer.start();
251 _lock.lock();
252 _timer.stop();
253 }
254
255 bool try_lock() {
256 _timer.start();

Callers

nothing calls this directly

Calls 2

startMethod · 0.45
stopMethod · 0.45

Tested by

no test coverage detected