aboutsummaryrefslogtreecommitdiff
path: root/src/Module.zig
diff options
context:
space:
mode:
authorErik Arvstedt <erik.arvstedt@gmail.com>2023-04-16 21:49:12 +0200
committerAndrew Kelley <andrew@ziglang.org>2023-04-18 18:38:52 -0700
commit1617138c721120d4543a0a5b392c979ec9e8956d (patch)
tree55cbdbf0ea5ba484a3fa7cbac8afdbd4b7a6b4fd /src/Module.zig
parent5bc35fa75bf62bc9a76305fc6bfc3530efba6aec (diff)
downloadzig-1617138c721120d4543a0a5b392c979ec9e8956d.tar.gz
zig-1617138c721120d4543a0a5b392c979ec9e8956d.zip
std.Thread.Condition: optimize example
- Hold the lock for a shorter amount of time - Previously, when holding the lock while signaling, the other, resumed thread could potentially get suspended again immediately because the mutex was still locked. - Fix comment
Diffstat (limited to 'src/Module.zig')
0 files changed, 0 insertions, 0 deletions