patch-src_singleton_h 666 B

123456789101112131415161718192021222324
  1. $OpenBSD: patch-src_singleton_h,v 1.1 2017/05/19 13:19:59 espie Exp $
  2. pre-declare, not enough to shup up all warnings
  3. Index: src/singleton.h
  4. --- src/singleton.h.orig
  5. +++ src/singleton.h
  6. @@ -58,6 +58,8 @@ class SingletonManager : public zmm::Object (protected
  7. template <class T>
  8. class Singleton : public zmm::Object
  9. {
  10. +protected:
  11. + static zmm::Ref<Mutex> mutex;
  12. public:
  13. static zmm::Ref<T> getInstance()
  14. {
  15. @@ -87,7 +89,6 @@ class Singleton : public zmm::Object (protected)
  16. virtual void init() { }
  17. virtual void shutdown() { }
  18. - static zmm::Ref<Mutex> mutex;
  19. static zmm::Ref<T> instance;
  20. static bool singletonActive;