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

Method concurrency

src/bthread/task_control.h:73–74  ·  view source on GitHub ↗

Get # of worker threads.

Source from the content-addressed store, hash-verified

71
72 // Get # of worker threads.
73 int concurrency() const
74 { return _concurrency.load(butil::memory_order_acquire); }
75
76 int concurrency(bthread_tag_t tag) const
77 { return _tagged_ngroup[tag].load(butil::memory_order_acquire); }

Callers 7

TESTFunction · 0.80
TESTFunction · 0.80
bthread_setconcurrencyFunction · 0.80

Calls 1

loadMethod · 0.45

Tested by 2

TESTFunction · 0.64
TESTFunction · 0.64