Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
81
void CubeAPI::cleanup() {
82
if (g_ins != NULL) {
83
g_ins->destroy();
84
delete g_ins;
85
g_ins = NULL;
86
}
87
}
88
89
CubeAPI::CubeAPI() : _meta(NULL) {}
90
CubeAPI::~CubeAPI() { CHECK_EQ(0, bthread_key_delete(_tls_key)); }
Callers
nothing calls this directly
Calls
1
destroy
Method · 0.45
Tested by
no test coverage detected