MCPcopy Create free account
hub / github.com/apache/brpc / operator()

Method operator()

src/bthread/id.cpp:306–310  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

304 explicit IdResetter(int ec, const std::string& et)
305 : _error_code(ec), _error_text(et) {}
306 void operator()(bthread_id_t & id) const {
307 bthread_id_error2_verbose(
308 id, _error_code, _error_text, __FILE__ ":" BAIDU_SYMBOLSTR(__LINE__));
309 id = INVALID_BTHREAD_ID;
310 }
311private:
312 int _error_code;
313 const std::string& _error_text;

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected