diff options
| author | Erik Arvstedt <erik.arvstedt@gmail.com> | 2023-04-16 21:49:12 +0200 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2023-04-18 18:38:52 -0700 |
| commit | 1617138c721120d4543a0a5b392c979ec9e8956d (patch) | |
| tree | 55cbdbf0ea5ba484a3fa7cbac8afdbd4b7a6b4fd /src/Module.zig | |
| parent | 5bc35fa75bf62bc9a76305fc6bfc3530efba6aec (diff) | |
| download | zig-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
