force explicit instantiation of Singleton<> objects

This commit is contained in:
Mathias Agopian
2009-05-28 12:31:31 -07:00
parent 1837beb08d
commit e9d7445ace

View File

@@ -57,6 +57,7 @@ private:
*/
#define ANDROID_SINGLETON_STATIC_INSTANCE(TYPE) \
template class Singleton< TYPE >; \
template< class TYPE > Mutex Singleton< TYPE >::sLock; \
template<> TYPE* Singleton< TYPE >::sInstance(0);