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

Method PushFree

src/brpc/selective_channel.cpp:467–479  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

465}
466
467inline bool Sender::PushFree(const Resource& r) {
468 if (_nfree < 2) {
469 _free_resources[_nfree++] = r;
470 if (_finished && _nfree == _nalloc) {
471 Clear();
472 return false;
473 }
474 return true;
475 } else {
476 CHECK(false) << "Impossible!";
477 return false;
478 }
479}
480
481inline const Controller* Sender::SubController(int index) const {
482 if (index != 0) {

Callers 1

RunMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected