diff options
author | Nicolai Hähnle <[email protected]> | 2017-05-12 12:37:00 +0200 |
---|---|---|
committer | Nicolai Hähnle <[email protected]> | 2017-06-13 09:35:10 +0200 |
commit | d6ec0aa7edfbe1c86861a4643b6b095a243d24ad (patch) | |
tree | 2ba473fec3931c7d4e96cae8b25ea2ce4e23e1fa /src/compiler/glsl/lower_packing_builtins.cpp | |
parent | 2e28e8b199abab76fa9509d3247b44a2cb31921d (diff) |
glsl: fix a race condition when inserting new types
By splitting glsl_type::mutex into two, we can avoid dropping the hash
mutex while creating the new type instance (e.g. struct/record,
interface).
This fixes a time-of-check/time-of-use race where two threads would
simultaneously attempt to create the same type but end up with different
instances of glsl_type.
Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/compiler/glsl/lower_packing_builtins.cpp')
0 files changed, 0 insertions, 0 deletions