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

Method Delete

test/singleton_unittest.cc:53–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51template <typename Type>
52struct CallbackTrait : public DefaultSingletonTraits<Type> {
53 static void Delete(Type* instance) {
54 if (instance->callback_)
55 (instance->callback_)();
56 DefaultSingletonTraits<Type>::Delete(instance);
57 }
58};
59
60class CallbackSingleton {

Callers 4

CleanUpMethod · 0.45
TESTFunction · 0.45
CleanUpMethod · 0.45
TESTFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected