mirror of
https://github.com/KhronosGroup/glslang
synced 2024-11-09 20:10:06 +00:00
Use std::call_once in spv::Parameterize()
There was a race condition in this function as it used a static variable to attempt to ensure global initialization was only done once, which was not thread-safe. Instead, use std::call_once, which was added to C++11 for this exact case. Fixes #342
This commit is contained in:
parent
d9a6fb2247
commit
f47028995c
3056
SPIRV/doc.cpp
3056
SPIRV/doc.cpp
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user