summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Mathias Agopian <mathias@google.com> 2009-05-28 12:31:31 -0700
committer Mathias Agopian <mathias@google.com> 2009-05-28 12:31:31 -0700
commit0669fbb12a89c80b4cbb64e91fd3110c2965a20f (patch)
treeceaa253840f98e73cc3f132ce34e239efd891075
parent1c4ec71612bae05467fedbbebce37f5330a2b18c (diff)
force explicit instantiation of Singleton<> objects
-rw-r--r--include/utils/Singleton.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/utils/Singleton.h b/include/utils/Singleton.h
index 2f7c7c2dbf..bc7626a821 100644
--- a/include/utils/Singleton.h
+++ b/include/utils/Singleton.h
@@ -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);