摘要: 线程局部存储中用到的API基础:(TLS:Thread Local Storage) 1、在主线程中申请索引 g_index=::TlsAlloc(); 2、在线程函数中使用索引 存值:::TlsSetValue(g_index,(LPVOID)value); value是要存入此线程私有空间的值; 阅读全文
posted @ 2019-01-20 14:44 Claus丶 阅读(522) 评论(0) 推荐(0)