aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/module/ModuleManager.cpp
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2023-12-03 12:28:46 +0000
committersaturneric <[email protected]>2023-12-03 12:28:46 +0000
commit883db05d54510e76b6548e107593187e1306117d (patch)
treea4de9d60d3bfeb69ba443129d208feef65250b2c /src/core/module/ModuleManager.cpp
parentfeat: improve memory security of function framework (diff)
downloadGpgFrontend-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.cpp8
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();
}