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

Method BthreadTest

test/bthread_unittest.cpp:46–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44class BthreadTest : public ::testing::Test{
45protected:
46 BthreadTest(){
47 const int kNumCores = sysconf(_SC_NPROCESSORS_ONLN);
48 if (kNumCores > 0) {
49 bthread_setconcurrency(kNumCores);
50 }
51 };
52 virtual ~BthreadTest(){};
53 virtual void SetUp() {
54 };

Callers

nothing calls this directly

Calls 1

bthread_setconcurrencyFunction · 0.85

Tested by

no test coverage detected