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

Method AppendAndDestroySelf

test/brpc_socket_unittest.cpp:194–201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

192 : _str(str), _len(len), _called(called) {}
193private:
194 butil::Status AppendAndDestroySelf(butil::IOBuf* out_buf, brpc::Socket*) {
195 out_buf->append(_str, _len);
196 if (_called) {
197 *_called = g_called_seq.fetch_add(1, butil::memory_order_relaxed);
198 }
199 delete this;
200 return butil::Status::OK();
201 };
202 const char* _str;
203 size_t _len;
204 int* _called;

Callers 4

MakeH2EchoRequestBufMethod · 0.45
MakeH2EchoResponseBufMethod · 0.45
TEST_FFunction · 0.45
TESTFunction · 0.45

Calls 2

fetch_addMethod · 0.80
appendMethod · 0.45

Tested by

no test coverage detected