aboutsummaryrefslogtreecommitdiff
path: root/lib/std/Thread.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2025-12-22 14:37:41 -0800
committerAndrew Kelley <andrew@ziglang.org>2025-12-23 22:15:12 -0800
commit3c2f5adf41f0e75fd5e8f6661891dd7d4fa770a9 (patch)
tree5ae7765b93dfde9f5638b83ba2436fbbdd0da24d /lib/std/Thread.zig
parent86e9e32cf0d5a028d6ebb32f8d0f3d0a23e717b6 (diff)
downloadzig-3c2f5adf41f0e75fd5e8f6661891dd7d4fa770a9.tar.gz
zig-3c2f5adf41f0e75fd5e8f6661891dd7d4fa770a9.zip
std: integrate Io.Threaded with environment variables
* std.option allows overriding the debug Io instance * if the default is used, start code initializes environ and argv0 also fix some places that needed recancel(), thanks mlugg! See #30562
Diffstat (limited to 'lib/std/Thread.zig')
-rw-r--r--lib/std/Thread.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/Thread.zig b/lib/std/Thread.zig
index f25c664000..1900225099 100644
--- a/lib/std/Thread.zig
+++ b/lib/std/Thread.zig
@@ -322,7 +322,7 @@ pub fn getName(self: Thread, buffer_ptr: *[max_name_len:0]u8) GetNameError!?[]co
var buf: [32]u8 = undefined;
const path = try std.fmt.bufPrint(&buf, "/proc/self/task/{d}/comm", .{self.getHandle()});
- const io = Io.Threaded.global_single_threaded.ioBasic();
+ const io = std.options.debug_io;
const file = try Io.Dir.cwd().openFile(io, path, .{});
defer file.close(io);