mirror of
https://github.com/mapnik/mapnik.git
synced 2025-12-08 20:13:09 +00:00
make destroyed_ atomic<>
This commit is contained in:
parent
fa82d5a0c9
commit
81ead3dc78
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user