还有一道题: static Singleton* getinstance(){ Singleton * tmp=instance; if(tmp==NULL){ Lock lock; tmp=instance; if(tmp==NULL){ tmp=new Singleton(); } } instance=tmp; return instance; } 判断代码是否有不妥?
点赞 2

相关推荐

陆续:不可思议 竟然没那就话 那就我来吧 :你是我在牛客见到的最美的女孩
点赞 评论 收藏
分享
牛客网
牛客网在线编程
牛客网题解
牛客企业服务