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

Function borrow_thread_impl

test/bthread_key_unittest.cpp:520–526  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

518}
519
520static void borrow_thread_impl() {
521 for (int i = 0; i < 32768; i++) {
522 bthread::KeyTable* keytable = bthread::borrow_keytable(&test_pool);
523 BAIDU_SCOPED_LOCK(table_mutex);
524 table_list.push_back(keytable);
525 }
526}
527
528static void* borrow_thread(void*) {
529 borrow_thread_impl();

Callers 1

borrow_threadFunction · 0.85

Calls 2

borrow_keytableFunction · 0.85
push_backMethod · 0.45

Tested by

no test coverage detected