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

Function TEST_F

test/baidu_thread_local_unittest.cpp:76–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74}
75
76TEST_F(BaiduThreadLocalTest, thread_local_keyword) {
77 pthread_t th[2];
78 pthread_create(&th[0], NULL, foo, (void*)1);
79 pthread_create(&th[1], NULL, foo, (void*)2);
80 pthread_join(th[0], NULL);
81 pthread_join(th[1], NULL);
82}
83
84void* yell(void*) {
85 YellObj* p = butil::get_thread_local<YellObj>();

Callers

nothing calls this directly

Calls 3

thread_atexitFunction · 0.85
proc_dummyFunction · 0.85
thread_atexit_cancelFunction · 0.85

Tested by

no test coverage detected