vendredi 27 février 2015

Usefulness of Thread Local Storage

I don't understand why Microsoft decided to implement TLS (Thread Local Storage) in Windows. Isn't it possible to do something equivalent just by using GetCurrentThreadId()?


I think it takes more time to learn how TLS works than to implement your own version.


So why bother?


Aucun commentaire:

Enregistrer un commentaire