diff options
author | Christian Pointner <equinox@anytun.org> | 2014-06-29 00:06:23 +0000 |
---|---|---|
committer | Christian Pointner <equinox@anytun.org> | 2014-06-29 00:06:23 +0000 |
commit | 92a551b96e625257def26771155ebd64c6d8757e (patch) | |
tree | 7d5b2d0a043f746bfb10ccc9679ac59646a95b72 /src/log.h | |
parent | while(1) vs. for(;;) (diff) |
fixed not working singletons - still not threadsafe but at least they don't pretend to be
Diffstat (limited to 'src/log.h')
-rw-r--r-- | src/log.h | 15 |
1 files changed, 1 insertions, 14 deletions
@@ -77,27 +77,14 @@ public: private: Log() {}; ~Log() {}; + Log(const Log& l); void operator=(const Log& l); - static Log* inst; - static Mutex instMutex; - class instanceCleaner - { - public: - ~instanceCleaner() { - if(Log::inst != 0) { - delete Log::inst; - } - } - }; - friend class instanceCleaner; - void log(std::string msg, int prio); Mutex mutex; friend class LogStringBuilder; - LogTargetList targets; }; |