摘要: TLS是由于多线程编程带来的产物,主要是为了解决线程资源局部化,具体内容网上有很多介绍。有很多地方已经支持了该功能,但有些地方没有,下面是GCC的一些介绍,反正具体看实际使用情况:5.51 Thread-Local Storage=========================Thread-local storage (TLS) is a mechanism by which variables areallocated such that there is one instance of the variable per extantthread. The run-time model G 阅读全文