title: Thread local storage / Windows
body: <p>Given native code (C/C++), could someone explain thread local storage? Is it simply a trick that allows threads to control the lifetime of their own variables, or is there some isolation/protection enforcement by either the compiler or the hardware?</p>
  
  <p>Does the underling platform matter?</p>
  
  <p>Further more, what is the difference between plain TLS and "Fiber-safe" TLS, with respect to the above?</p>
  
  <p>Sorry, I googled, but all I could find was how to use TLS (which I already know) but not the geeky details behind the scenes.</p>