make destroyed_ atomic<>

This commit is contained in:
artemp 2015-09-08 12:26:43 +02:00
parent fa82d5a0c9
commit 81ead3dc78

View File

@ -80,7 +80,7 @@ template <typename T,
#endif
friend class CreatePolicy<T>;
static std::atomic<T*> pInstance_;
static bool destroyed_;
static std::atomic<bool> destroyed_;
singleton(const singleton &rhs);
singleton& operator=(const singleton&);
@ -135,7 +135,7 @@ template <typename T,
template <typename T,
template <typename U> class CreatePolicy> std::atomic<T*> singleton<T,CreatePolicy>::pInstance_;
template <typename T,
template <typename U> class CreatePolicy> bool singleton<T,CreatePolicy>::destroyed_ = false;
template <typename U> class CreatePolicy> std::atomic<bool> singleton<T,CreatePolicy>::destroyed_ { false };
}
#endif // MAPNIK_UTIL_SINGLETON_HPP