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

Function GetSessionLocalDataCount

src/brpc/server.cpp:294–301  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

292}
293
294static bvar::Vector<unsigned, 2> GetSessionLocalDataCount(void* arg) {
295 bvar::Vector<unsigned, 2> v;
296 SimpleDataPool::Stat s =
297 static_cast<Server*>(arg)->session_local_data_pool()->stat();
298 v[0] = s.ncreated - s.nfree;
299 v[1] = s.nfree;
300 return v;
301}
302
303static int cast_no_barrier_int(void* arg) {
304 return butil::subtle::NoBarrier_Load(static_cast<int*>(arg));

Callers

nothing calls this directly

Calls 2

statMethod · 0.80

Tested by

no test coverage detected