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

Function add_concurrency_proc

test/bthread_setconcurrency_unittest.cpp:133–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131}
132
133void* add_concurrency_proc(void*) {
134 bthread_t tid;
135 bthread_start_background(&tid, &BTHREAD_ATTR_SMALL, sleep_proc, NULL);
136 bthread_join(tid, NULL);
137 return NULL;
138}
139
140bool set_min_concurrency(int num) {
141 std::stringstream ss;

Callers

nothing calls this directly

Calls 2

bthread_start_backgroundFunction · 0.85
bthread_joinFunction · 0.85

Tested by

no test coverage detected