MCPcopy Create free account
hub / github.com/apache/brpc / ~PartitionChannel

Method ~PartitionChannel

src/brpc/partition_channel.cpp:198–209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

196}
197
198PartitionChannel::~PartitionChannel() {
199 if (_nsthread_ptr) {
200 if (_pchan) {
201 _nsthread_ptr->RemoveWatcher(_pchan);
202 }
203 _nsthread_ptr.reset();
204 }
205 delete _pchan;
206 _pchan = NULL;
207 delete _parser;
208 _parser = NULL;
209}
210
211int PartitionChannel::Init(int num_partition_kinds,
212 PartitionParser* partition_parser,

Callers

nothing calls this directly

Calls 2

RemoveWatcherMethod · 0.80
resetMethod · 0.45

Tested by

no test coverage detected