Some applications may not call eglReleaseThread() before terminating a thread, which can cause a minor memory leak. pthread_key_create() supports specifying a destructor callback to implicitly free the thread-local storage on thread termination. On Windows we use the DLL_THREAD_DETACH signal to free it explicitly. This change also simplifies TLS management by removing the ability to set a new value. Bug swiftshader:80 Change-Id: I249ca519c1c9ab722e570516d0931cb17ea081bb Reviewed-on: https://swiftshader-review.googlesource.com/12068Tested-by:Nicolas Capens <nicolascapens@google.com> Reviewed-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <nicolascapens@google.com>
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| Android.mk | Loading commit data... | |
| BUILD.gn | Loading commit data... | |
| Config.cpp | Loading commit data... | |
| Config.h | Loading commit data... | |
| Context.hpp | Loading commit data... | |
| Display.cpp | Loading commit data... | |
| Display.h | Loading commit data... | |
| OSXUtils.hpp | Loading commit data... | |
| OSXUtils.mm | Loading commit data... | |
| Surface.cpp | Loading commit data... | |
| Surface.hpp | Loading commit data... | |
| Sync.hpp | Loading commit data... | |
| Texture.hpp | Loading commit data... | |
| exports.map | Loading commit data... | |
| libEGL.cpp | Loading commit data... | |
| libEGL.def | Loading commit data... | |
| libEGL.hpp | Loading commit data... | |
| libEGL.rc | Loading commit data... | |
| libEGL.vcxproj | Loading commit data... | |
| libEGL.vcxproj.filters | Loading commit data... | |
| main.cpp | Loading commit data... | |
| main.h | Loading commit data... | |
| resource.h | Loading commit data... |