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

发表回复

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

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据