From 883db05d54510e76b6548e107593187e1306117d Mon Sep 17 00:00:00 2001 From: saturneric Date: Sun, 3 Dec 2023 04:28:46 -0800 Subject: feat: general improvements of aync execution and memory security --- src/core/module/GlobalModuleContext.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/core/module/GlobalModuleContext.cpp') diff --git a/src/core/module/GlobalModuleContext.cpp b/src/core/module/GlobalModuleContext.cpp index cb459f65..4195d719 100644 --- a/src/core/module/GlobalModuleContext.cpp +++ b/src/core/module/GlobalModuleContext.cpp @@ -119,7 +119,8 @@ class GlobalModuleContext::Impl { ModuleRegisterInfo register_info; register_info.module = module; register_info.channel = acquire_new_unique_channel(); - register_info.task_runner = std::make_shared(); + register_info.task_runner = + GpgFrontend::SecureCreateSharedObject(); register_info.task_runner->Start(); // move module to its task runner' thread @@ -128,7 +129,8 @@ class GlobalModuleContext::Impl { // Register the module with its identifier. module_register_table_[module->GetModuleIdentifier()] = - std::make_shared(std::move(register_info)); + GpgFrontend::SecureCreateSharedObject( + std::move(register_info)); SPDLOG_DEBUG("successfully registered module: {}", module->GetModuleIdentifier()); -- cgit v1.2.3