MCPcopy Create free account
hub / github.com/Tencent/phxqueue / ~FactoryList

Method ~FactoryList

phxqueue/comm/handler.h:88–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86 public:
87 FactoryList() {}
88 ~FactoryList() {
89 typename FList::iterator it;
90 for (it = list_.begin(); list_.end() != it; ++it) {
91 delete it->second, it->second = nullptr;
92 }
93 }
94
95 void AddFactory(int handle_id, F *factory) {
96 list_.push_back(std::make_pair(handle_id, factory));

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected