diff options
| author | jsmall-nvidia <jsmall@nvidia.com> | 2020-08-27 10:03:06 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-27 10:03:06 -0400 |
| commit | 3cbff11a883f3ad1cf793ac92b399a59dfed3168 (patch) | |
| tree | 0f8b68c44f21fd58d4dcecebd9d2640a2b7d47ef /source | |
| parent | ec55ac4217eb5a9eedacc09888c846cd4b3a5add (diff) | |
Removed use of pthreads in glslang (#1517)
* Try removing pthreads from glslang.
* Update slang-binaries to use glslang that doesn't use pthreads.
Co-authored-by: Tim Foley <tfoleyNV@users.noreply.github.com>
Diffstat (limited to 'source')
| -rw-r--r-- | source/slang-glslang/slang-glslang.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/source/slang-glslang/slang-glslang.cpp b/source/slang-glslang/slang-glslang.cpp index 80087997c..03bc0a17d 100644 --- a/source/slang-glslang/slang-glslang.cpp +++ b/source/slang-glslang/slang-glslang.cpp @@ -588,3 +588,24 @@ int glslang_compile(glslang_CompileRequest_1_0* inRequest) request.set(*inRequest); return glslang_compile_1_1(&request); } + +static std::mutex g_globalMutex; + +namespace glslang { + +void InitGlobalLock() +{ + +} + +void GetGlobalLock() +{ + g_globalMutex.lock(); +} + +void ReleaseGlobalLock() +{ + g_globalMutex.unlock(); +} + +} // namespace glslang |
