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:
parent
808c7ed17c
commit
775864ef74
2 changed files with 12 additions and 18 deletions
|
|
@ -37,7 +37,7 @@
|
|||
|
||||
namespace glslang {
|
||||
|
||||
bool InitializePoolIndex();
|
||||
inline bool InitializePoolIndex() { return true; } // DEPRECATED: No need to call
|
||||
|
||||
} // end namespace glslang
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue