diff options
author | Saturneric <[email protected]> | 2021-09-05 21:41:00 +0000 |
---|---|---|
committer | Saturneric <[email protected]> | 2021-09-05 21:41:00 +0000 |
commit | e2d30cc0194db74b77e3c06dbaf9c597bb82c860 (patch) | |
tree | d9df5302e59c59135495ee81657422cebd7b6092 /src/gpg/GpgFunctionObject.h | |
parent | Rewrite the core. (diff) | |
download | GpgFrontend-e2d30cc0194db74b77e3c06dbaf9c597bb82c860.tar.gz GpgFrontend-e2d30cc0194db74b77e3c06dbaf9c597bb82c860.zip |
Adjust the code structure.
Introduce log library.
Remove Qt from the core code.
Diffstat (limited to '')
-rw-r--r-- | src/gpg/GpgFunctionObject.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gpg/GpgFunctionObject.h b/src/gpg/GpgFunctionObject.h index 0f772c92..654f81d3 100644 --- a/src/gpg/GpgFunctionObject.h +++ b/src/gpg/GpgFunctionObject.h @@ -28,10 +28,14 @@ #include <memory> #include <mutex> +#include <easyloggingpp/easylogging++.h> + namespace GpgFrontend { template <typename T> class SingletonFunctionObject { public: static T &GetInstance() { + LOG(INFO) << "SingletonFunctionObject GetInstance Calling " + << typeid(T).name(); std::lock_guard<std::mutex> guard(_instance_mutex); if (_instance == nullptr) _instance = std::make_unique<T>(); |