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

Function proc_dummy

test/baidu_thread_local_unittest.cpp:122–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120}
121
122void* proc_dummy(void* arg) {
123 bool *p = (bool*)arg;
124 *p = true;
125 EXPECT_TRUE(dummy == NULL);
126 dummy = new int(p - processed);
127 butil::thread_atexit(delete_dummy, deleted + (p - processed));
128 return NULL;
129}
130
131TEST_F(BaiduThreadLocalTest, sanity) {
132 errno = 0;

Callers 1

TEST_FFunction · 0.85

Calls 1

thread_atexitFunction · 0.85

Tested by

no test coverage detected