会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
Meteoric_cry
博客园
首页
新随笔
联系
订阅
管理
2014年8月28日
多个so中模板单例的多次实例化
摘要: 在Android打包项目时,发现登录功能不能使用了,logcat中也没发现什么问题,最后一行一行log定位到了问题。原来是一个so文件中的构造函数被初始化二次! 这个单例是通过继承模板来实现的(暂时不考虑线程安全的问题) templateclass CSingleT{public: static T * Instance() { if (!ms_pObje...
阅读全文
posted @ 2014-08-28 17:20 meteoric_cry
阅读(2041)
评论(0)
推荐(0)
编辑
公告