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

Function is_contention_site_valid

src/bthread/mutex.cpp:375–377  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

373}
374
375bool is_contention_site_valid(const bthread_contention_site_t& cs) {
376 return bvar::is_sampling_range_valid(cs.sampling_range);
377}
378
379void make_contention_site_invalid(bthread_contention_site_t* cs) {
380 cs->sampling_range = 0;

Callers 3

bthread_mutex_unlockFunction · 0.85
rwlock_unwrlockFunction · 0.85

Calls 1

is_sampling_range_validFunction · 0.85

Tested by

no test coverage detected