提交 02a76910 编写于 作者: W wxyu

MS-611 Add resources validity check in ResourceMgr


Former-commit-id: 534264d0ab113ac14f53d53b96060bda5195e022
上级 0bb9b799
......@@ -105,6 +105,8 @@ void
ResourceMgr::Clear() {
std::lock_guard<std::mutex> lck(resources_mutex_);
disk_resources_.clear();
cpu_resources_.clear();
gpu_resources_.clear();
resources_.clear();
}
......
......@@ -123,6 +123,7 @@ DBTest::TearDown() {
ms::scheduler::JobMgrInst::GetInstance()->Stop();
ms::scheduler::SchedInst::GetInstance()->Stop();
ms::scheduler::ResMgrInst::GetInstance()->Stop();
ms::scheduler::ResMgrInst::GetInstance()->Clear();
BaseTest::TearDown();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册