fix: multi model.train with sink_mode=True maybe fail

This commit is contained in:
jonyguo 2023-02-06 17:43:49 +08:00
parent aacab0ca60
commit 20118068ff
1 changed files with 4 additions and 0 deletions

View File

@ -83,6 +83,10 @@ void AddHandle(acltdtChannelHandle **handle, std::thread *use_thread) {
}
g_acl_handle_map.emplace_back(void_handle, use_thread);
{
std::lock_guard<std::mutex> lock(g_acl_destroy_all_mutex);
g_acl_destroy_all = false;
}
}
void DelHandle(acltdtChannelHandle **handle) {