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

Method ~DynamicPartitionChannel

src/brpc/partition_channel.cpp:427–438  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

425}
426
427DynamicPartitionChannel::~DynamicPartitionChannel() {
428 if (_nsthread_ptr) {
429 if (_partitioner) {
430 _nsthread_ptr->RemoveWatcher(_partitioner);
431 }
432 _nsthread_ptr.reset();
433 }
434 delete _partitioner;
435 _partitioner = NULL;
436 delete _parser;
437 _parser = NULL;
438}
439
440int DynamicPartitionChannel::Init(
441 PartitionParser* partition_parser,

Callers

nothing calls this directly

Calls 2

RemoveWatcherMethod · 0.80
resetMethod · 0.45

Tested by

no test coverage detected