aboutsummaryrefslogtreecommitdiff
path: root/lib/std/Build/Cache/Path.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2024-05-27 10:29:39 -0700
committerAndrew Kelley <andrew@ziglang.org>2024-05-27 20:56:48 -0700
commitdc3a192ae841706bb965218c68b0085bbec2b35e (patch)
tree24aa6cca1ca96e9ceeedc528942c55ab372fcc5a /lib/std/Build/Cache/Path.zig
parent6145819c0ba00924b37bab78200aeab6306c1672 (diff)
downloadzig-dc3a192ae841706bb965218c68b0085bbec2b35e.tar.gz
zig-dc3a192ae841706bb965218c68b0085bbec2b35e.zip
std.Progress: count newlines more accurately
Split newline_count into written_newline_count and accumulated_newline_count. This handle the case when the tryLock() fails to obtain the lock, because in such case there would not be any newlines written to the terminal but the system would incorrectly think there were. Now, written_newline_count is only adjusted when the write() call succeeds. Furthermore, write() call failure is handled by exiting the update thread.
Diffstat (limited to 'lib/std/Build/Cache/Path.zig')
0 files changed, 0 insertions, 0 deletions