摘要: 1. 多线程安全的单例模式(double check) 1 class Locker 2 { 3 public: 4 Locker() 5 { 6 pthread_mutex_init(&m_mutex, NULL); 7 } 8 9 ~Locker... 阅读全文
posted @ 2015-04-01 19:16 wiessharling 阅读(187) 评论(0) 推荐(0) 编辑