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

Function on_reset

test/bthread_id_unittest.cpp:120–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118};
119
120int on_reset(bthread_id_t id, void* data, int error_code) {
121 OnResetArg* arg = static_cast<OnResetArg*>(data);
122 arg->id = id;
123 arg->error_code = error_code;
124 return bthread_id_unlock_and_destroy(id);
125}
126
127TEST(BthreadIdTest, error_is_destroy) {
128 bthread_id_t id1;

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected