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

Method destroy

src/bthread/mutex.cpp:313–316  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

311}
312
313void SampledContention::destroy() {
314 _hash_code = 0;
315 butil::return_object(this);
316}
317
318// Remember the conflict hashes for troubleshooting, should be 0 at most of time.
319static butil::static_atomic<int64_t> g_nconflicthash = BUTIL_STATIC_ATOMIC_INIT(0);

Callers 2

dump_and_destroyMethod · 0.45
flush_to_diskMethod · 0.45

Calls 1

return_objectFunction · 0.50

Tested by

no test coverage detected