懒汉模式
- 延迟实例化
- 非线程安全,需加锁保证线程安全
- 双检锁:通过两次判断,保证线程安全
lazy.rar
(预估有个31文件)
lazy
lazy
SingleCase.h
524B
lazy.vcxproj
6KB
main.cpp
1KB
x64
Debug
lazy.log
1KB
lazy.tlog
CL.write.1.tlog
890B
CL.command.1.tlog
978B
lazy.lastbuildstate
152B
link.command.1.tlog
1KB
link.read.1.tlog
3KB
link.write.1.tlog
444B
CL.read.1.tlog
67KB
SingleCase.obj
72KB
vc140.idb
1.06MB
vc140.pdb
484KB
main.obj
43KB
Debug
lazy.log
1KB
lazy.tlog
CL.write.1.tlog
1KB
CL.command.1.tlog
1006B
lazy.lastbuildstate
154B
link.command.1.tlog
1KB
link.read.1.tlog
3KB
link.write.1.tlog
404B
CL.read.1.tlog
69KB
SingleCase.obj
63KB
vc140.idb
971KB
vc140.pdb
476KB
main.obj
41KB
lazy.vcxproj.filters
1KB
SingleCase.cpp
1KB
lazy.sdf
36.13MB
lazy.sln
1KB
暂无评论