Simplify PoolAlloc with use of thread_local.

glslang is using C++ 11, which has first class support for variables of the `thread_local` storage class.

By dropping the use of the `OS_[GS]etTLSValue`, we can simplify the logic, and have it support a thread-local default allocator if none is provided.

Issue: #2346
This commit is contained in:
Ben Clayton 2020-07-14 18:32:12 +01:00 committed by arcady-lunarg
parent 808c7ed17c
commit 775864ef74
2 changed files with 12 additions and 18 deletions

View file

@ -37,7 +37,7 @@
namespace glslang {
bool InitializePoolIndex();
inline bool InitializePoolIndex() { return true; } // DEPRECATED: No need to call
} // end namespace glslang