aboutsummaryrefslogtreecommitdiff
path: root/src/codegen/spirv
diff options
context:
space:
mode:
authorIgor Anić <igor.anic@gmail.com>2022-11-21 17:26:54 +0100
committerIgor Anić <igor.anic@gmail.com>2022-11-21 17:26:54 +0100
commit9947b47d803415f40c82b6cbb510f47bc800658d (patch)
tree6976446b6e5f582a2469823e3a2b0b39978404ee /src/codegen/spirv
parentf229b740999b58432dc49e3aa412fac14e3781f3 (diff)
downloadzig-9947b47d803415f40c82b6cbb510f47bc800658d.tar.gz
zig-9947b47d803415f40c82b6cbb510f47bc800658d.zip
stdlib: Thread.Condition wake only if signaled
Previous implementation didn't check whether there are pending signals after return from futex.wait. While it is ok for broadcast case it can result in multiple wakeups when only one thread is signaled. This implementation checks that there are pending signals before returning from wait. It is similar to the original implementation but the without initial signal check, here we first go to the futex and then check for pending signal.
Diffstat (limited to 'src/codegen/spirv')
0 files changed, 0 insertions, 0 deletions