摘要: pthread_once class Singleton { public: static Singleton *GetInstance() { pthread_once(&ponce_, &Singleton::init); return value_; } private: Singleton( 阅读全文
posted @ 2019-05-24 14:36 huxiaoting 阅读(978) 评论(0) 推荐(0) 编辑