动态tls有四个API,运行了网上给的列子。不知道tls有什么用?

解决方案 »

  1.   

    参考   TLS--线程局部存储
      

  2.   

    Thread Local Storage (TLS) is the mechanism by which each thread in a given multithreaded process allocates storage for thread-specific data. In standard multithreaded programs, data is shared among all threads of a given process, whereas thread local storage is the mechanism for allocating per-thread data. 
      

  3.   

    动态tls是dll用的.
    exe用静态就行.
      

  4.   

    设计一些库,并把线程相关的一些库需要的数据保存在tls中,使得对库的多线程调用互不影响