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

Method destructor

muduo/base/ThreadLocal.h:45–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43 private:
44
45 static void destructor(void *x)
46 {
47 T* obj = static_cast<T*>(x);
48 typedef char T_must_be_complete_type[sizeof(T) == 0 ? -1 : 1];
49 T_must_be_complete_type dummy; (void) dummy;
50 delete obj;
51 }
52
53 private:
54 pthread_key_t pkey_;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected