改进暂放流程
This commit is contained in:
parent
ddef960ecb
commit
b40db291a7
@ -203,13 +203,17 @@ namespace hgl
|
|||||||
if(!node_map.empty())
|
if(!node_map.empty())
|
||||||
{
|
{
|
||||||
for(auto &it:node_map)
|
for(auto &it:node_map)
|
||||||
OnDestoryNode(it.second); //销毁节点
|
{
|
||||||
|
it.second->MarkWaitDestory();
|
||||||
|
|
||||||
//这里的逻辑会有问题,需要更简单的逻辑
|
wait_destory_node_set.insert(it.second);
|
||||||
|
}
|
||||||
|
|
||||||
node_map.clear();
|
node_map.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//正式的销毁可能是需要考虑node顺序的,需要根据依赖进行排序.这里暂时没做。
|
||||||
|
|
||||||
if(!wait_destory_node_set.empty())
|
if(!wait_destory_node_set.empty())
|
||||||
{
|
{
|
||||||
for(auto *node:wait_destory_node_set)
|
for(auto *node:wait_destory_node_set)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user