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

Function waiter

test/bthread_id_unittest.cpp:343–348  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

341}
342
343void* waiter(void* arg) {
344 bthread_id_t id = { (uintptr_t)arg };
345 EXPECT_EQ(0, bthread_id_join(id));
346 EXPECT_EQ(get_version(id) + 4, bthread::id_value(id));
347 return NULL;
348}
349
350int handle_data(bthread_id_t id, void* data, int error_code) {
351 EXPECT_EQ(EBADF, error_code);

Callers

nothing calls this directly

Calls 3

bthread_id_joinFunction · 0.85
id_valueFunction · 0.85
get_versionFunction · 0.70

Tested by

no test coverage detected