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

Method try_lock

src/bthread/mutex.h:108–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106 void lock();
107 void unlock();
108 bool try_lock() { return _mutex.try_lock(); }
109#if defined(BTHREAD_USE_FAST_PTHREAD_MUTEX) || HAS_PTHREAD_MUTEX_TIMEDLOCK
110 bool timed_lock(const struct timespec* abstime);
111#endif // BTHREAD_USE_FAST_PTHREAD_MUTEX HAS_PTHREAD_MUTEX_TIMEDLOCK

Callers

nothing calls this directly

Calls 1

try_lockMethod · 0.45

Tested by

no test coverage detected