Thread local storage impl on WIN32 doesn't support destructors
Basics
Technical
Logistics
Basics
Technical
Logistics
Description
The TLS implementation for Windows doesn't handle the destroy hook because Windows doesn't support that. Need to implement a thread detach hook in the DLL and maintain a list of TLS objects to call destructors for.
Also replaced Mutex implementation with a more efficient version using CRITICAL_SECTION objects, since we don't allow for cross-process mutexes anyway.
Fixed
Pinned fields
Click on the next to a field label to start pinning.
The TLS implementation for Windows doesn't handle the destroy hook because Windows doesn't support that. Need to implement a thread detach hook in the DLL and maintain a list of TLS objects to call destructors for.