2014年11月10日

Thread-local storage (TLS)

摘要: 线程存储原理:为变量在每一个现存的线程里分配一个实例,需要处理器支持,并不是所有都支持!支持全局的,静态的变量,但不支持局部变量。关键字 __thread __thread int i; extern __thread struct state s; static __thread cha... 阅读全文

posted @ 2014-11-10 15:50 偏爱省略号 阅读(339) 评论(0) 推荐(0) 编辑

导航