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:
Arcady Goldmints-Orlov 2023-07-13 17:26:56 -04:00 committed by arcady-lunarg
parent d9a6fb2247
commit f47028995c

File diff suppressed because it is too large Load Diff