commit | a3845240aeed9e54db1febfbe74bb541cdf3ac1e | [log] [tgz] |
---|---|---|
author | Ben Clayton <bclayton@google.com> | Tue Jul 14 18:32:12 2020 +0100 |
committer | Ben Clayton <bclayton@google.com> | Tue Jul 21 09:40:34 2020 +0100 |
tree | 9eadf0950ab1d5053a9fb85a4b3fbdf7ae403a47 | |
parent | b99a6a7273181deeb08859c0fdb0c77c7e8a4500 [diff] |
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