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

Function hash_mutex_ptr

src/bthread/mutex.cpp:521–523  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

519
520template <typename Mutex>
521inline uint64_t hash_mutex_ptr(const Mutex* m) {
522 return butil::fmix64((uint64_t)m);
523}
524
525// Mark being inside locking so that pthread_mutex calls inside collecting
526// code are never sampled, otherwise deadlock may occur.

Callers 4

InitMutexOwnerMapEntryFunction · 0.85
mutex.cppFile · 0.85

Calls 1

fmix64Function · 0.85

Tested by

no test coverage detected