X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Utils%2Fsingleton.hh;h=dce43c0e18f69d37041cb7a028e3ac09dfca64b1;hb=925317c7f45c32b01ab9292023db3f372b74bf0f;hp=831e8125d108a5d02d6c8cbb376ee91217252eb8;hpb=46ce25973f087d30ca10eebdad6e3bfa7586ecc9;p=senf.git diff --git a/Utils/singleton.hh b/Utils/singleton.hh index 831e812..dce43c0 100644 --- a/Utils/singleton.hh +++ b/Utils/singleton.hh @@ -88,7 +88,11 @@ namespace senf { : boost::noncopyable { protected: + singleton(); + ~singleton(); + static Self & instance(); ///< Return singleton instance + static bool alive(); ///< Return \c true, if instance ok, \c false otherwise private: /** \brief Internal @@ -101,6 +105,7 @@ namespace senf { }; static force_creation creator_; + static bool alive_; }; }