摘要:
thread_local变量是C++ 11新引入的一种存储类型。它会影响变量的存储周期(Storage duration),C++中有4种存储周期: automatic static dynamic thread 有且只有thread_local关键字修饰的变量具有线程周期(thread durat 阅读全文
posted @ 2017-01-18 15:41
jiu~
阅读(2437)
评论(0)
推荐(1)
摘要:
单例模型 饿汉模式: 懒汉模式: 阅读全文
posted @ 2017-01-18 15:39
jiu~
阅读(408)
评论(0)
推荐(0)

浙公网安备 33010602011771号