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

Function DBDBthread

test/brpc_load_balancer_unittest.cpp:148–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146
147template <typename DBD>
148void* DBDBthread(void* arg) {
149 auto d = static_cast<DBD*>(arg);
150 while(!exitFlag){
151 typename DBD::ScopedPtr ptr;
152 d->Read(&ptr);
153
154 // If DBD is DoublyBufferedData<T, TLS, false>, may cause deadlock.
155 bthread_usleep(100 * 1000);
156 }
157
158 return NULL;
159}
160
161template <typename DBD>
162void DBDMultiBthread() {

Callers

nothing calls this directly

Calls 2

bthread_usleepFunction · 0.85
ReadMethod · 0.45

Tested by

no test coverage detected