MCPcopy Create free account
hub / github.com/chenshuo/muduo / destructor

Method destructor

muduo/base/ThreadLocalSingleton.h:40–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38
39 private:
40 static void destructor(void* obj)
41 {
42 assert(obj == t_value_);
43 typedef char T_must_be_complete_type[sizeof(T) == 0 ? -1 : 1];
44 T_must_be_complete_type dummy; (void) dummy;
45 delete t_value_;
46 t_value_ = 0;
47 }
48
49 class Deleter
50 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected