TLS测试

TLS(Thread-local storage)
Thread-local storage (TLS) is a mechanism by which variables are allocated such that there is one instance of the variable per extant thread.

运行结果

关于TLS的详细介绍,cppblog里有一篇比较易于理解的文章,偶只是小试一下:

http://www.cppblog.com/Tim/archive/2012/07/04/181018.html

发表评论

电子邮件地址不会被公开。 必填项已用*标注