unique更方便使用,但是会消耗更多的计算机性能
onceflag保证一个线程被调用一次,防止不能的加锁开锁
c++多线程のunique和lazy initation
原文:http://www.cnblogs.com/xietianjiao/p/6181611.html