MCPcopy Create free account
hub / github.com/PaddlePaddle/Serving / cleanup

Method cleanup

core/cube/cube-api/src/cube_api.cpp:81–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79}
80
81void CubeAPI::cleanup() {
82 if (g_ins != NULL) {
83 g_ins->destroy();
84 delete g_ins;
85 g_ins = NULL;
86 }
87}
88
89CubeAPI::CubeAPI() : _meta(NULL) {}
90CubeAPI::~CubeAPI() { CHECK_EQ(0, bthread_key_delete(_tls_key)); }

Callers

nothing calls this directly

Calls 1

destroyMethod · 0.45

Tested by

no test coverage detected