fixed Order for to release graph modules.

This commit is contained in:
2024-11-14 23:40:26 +08:00
parent fda5b629a2
commit abad1784c2
4 changed files with 32 additions and 10 deletions

View File

@@ -13,7 +13,9 @@ class GraphModuleManager
{
GPUDevice *device;
Map<AnsiIDName,GraphModule *> graph_module_map;
List<GraphModule *> module_list; ///<模块列表
Map<AnsiIDName,GraphModule *> graph_module_map; ///<模块映射表
public:
@@ -86,12 +88,8 @@ public:
NO_COPY_NO_MOVE(GraphModule)
GraphModule(GraphModuleManager *gmm,const AnsiIDName &name)
{
module_manager=gmm;
module_name=name;
}
virtual ~GraphModule()=default;
GraphModule(GraphModuleManager *gmm,const AnsiIDName &name);
virtual ~GraphModule();
virtual bool Init(){return true;} ///<初始化当前模块