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

Method SuspendRunning

src/brpc/policy/thrift_protocol.cpp:224–226  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

222}
223
224inline void ThriftClosure::SuspendRunning() {
225 _run_counter.fetch_add(1, butil::memory_order_relaxed);
226}
227
228inline void ThriftClosure::ResumeRunning() {
229 if (_run_counter.fetch_sub(1, butil::memory_order_relaxed) == 1) {

Callers 1

Calls 1

fetch_addMethod · 0.80

Tested by

no test coverage detected