summaryrefslogtreecommitdiff
path: root/src/utils.hh
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2013-03-22 14:26:44 +0100
committerMaxime Coste <frrrwww@gmail.com>2013-03-22 14:26:44 +0100
commit5bba01ca9cdd8c5ca84b475d305ee5e55dd82da3 (patch)
treed3db56a891c6020181691a1351be710f52251a21 /src/utils.hh
parent9494fbbd87eb9601bd9a82940c84995d17de1a6a (diff)
BufferManager notify the ClientManager when a buffer dies
Diffstat (limited to 'src/utils.hh')
-rw-r--r--src/utils.hh5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/utils.hh b/src/utils.hh
index 6337bc24..0db71f40 100644
--- a/src/utils.hh
+++ b/src/utils.hh
@@ -33,6 +33,11 @@ public:
ms_instance = nullptr;
}
+ static bool has_instance()
+ {
+ return ms_instance != nullptr;
+ }
+
protected:
Singleton()
{