summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-08-15 15:33:39 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-08-16 00:03:41 +0200
commit2eca85031d0190f164ce2ae4dc13ee6b3b097989 (patch)
tree83d81a4b57e41873189741a5dcd64bbe1d9072a7
parent6eea58b542d59e08b4630535b0dbe78d37e6c705 (diff)
compat/options: qDebug() in singleton dtor
This singleton is used around the codebase so make its lifetime clear to the developer.
-rw-r--r--compat/options.cpp5
-rw-r--r--compat/options.hpp1
2 files changed, 6 insertions, 0 deletions
diff --git a/compat/options.cpp b/compat/options.cpp
index db2e5ce5..32471870 100644
--- a/compat/options.cpp
+++ b/compat/options.cpp
@@ -233,6 +233,11 @@ opt_singleton::opt_singleton() : implsgl_mtx(QMutex::Recursive)
{
}
+opt_singleton::~opt_singleton()
+{
+ qDebug() << "exit: bundle singleton";
+}
+
pbundle opt_singleton::bundle(const opt_singleton::k &key)
{
QMutexLocker l(&implsgl_mtx);
diff --git a/compat/options.hpp b/compat/options.hpp
index 454cc99a..07696b3c 100644
--- a/compat/options.hpp
+++ b/compat/options.hpp
@@ -142,6 +142,7 @@ namespace options {
void after_profile_changed_();
public:
opt_singleton();
+ ~opt_singleton();
pbundle bundle(const k& key);
void bundle_decf(const k& key);
static void refresh_all_bundles();