diff options
author | saturneric <[email protected]> | 2023-12-03 12:28:46 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2023-12-03 12:28:46 +0000 |
commit | 883db05d54510e76b6548e107593187e1306117d (patch) | |
tree | a4de9d60d3bfeb69ba443129d208feef65250b2c /src/core/module/ModuleManager.cpp | |
parent | feat: improve memory security of function framework (diff) | |
download | GpgFrontend-883db05d54510e76b6548e107593187e1306117d.tar.gz GpgFrontend-883db05d54510e76b6548e107593187e1306117d.zip |
feat: general improvements of aync execution and memory security
Diffstat (limited to 'src/core/module/ModuleManager.cpp')
-rw-r--r-- | src/core/module/ModuleManager.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/core/module/ModuleManager.cpp b/src/core/module/ModuleManager.cpp index 4400a92d..5e2aa994 100644 --- a/src/core/module/ModuleManager.cpp +++ b/src/core/module/ModuleManager.cpp @@ -44,9 +44,11 @@ ModuleMangerPtr ModuleManager::g_ = nullptr; class ModuleManager::Impl { public: Impl() - : task_runner_(std::make_shared<Thread::TaskRunner>()), - gmc_(std::make_shared<GlobalModuleContext>(task_runner_)), - grt_(std::make_shared<GlobalRegisterTable>()) { + : task_runner_( + GpgFrontend::SecureCreateSharedObject<Thread::TaskRunner>()), + gmc_(GpgFrontend::SecureCreateSharedObject<GlobalModuleContext>( + task_runner_)), + grt_(GpgFrontend::SecureCreateSharedObject<GlobalRegisterTable>()) { task_runner_->Start(); } |