aboutsummaryrefslogtreecommitdiff
path: root/lib/std/Thread/WaitGroup.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2025-10-14 20:59:16 -0700
committerAndrew Kelley <andrew@ziglang.org>2025-10-29 06:20:49 -0700
commit35ce907c06d5758adab276927ad8dbe730d6130d (patch)
treec7d3839b953c4c0a7e5beee7090713d28fff04b3 /lib/std/Thread/WaitGroup.zig
parent1382e4122603fd2b57e4feb0eff76ba2d73a913a (diff)
downloadzig-35ce907c06d5758adab276927ad8dbe730d6130d.tar.gz
zig-35ce907c06d5758adab276927ad8dbe730d6130d.zip
std.Io.net.HostName: move lookup to the interface
Unfortunately this can't be implemented "above the vtable" because various operating systems don't provide low level DNS resolution primitives such as just putting the list of nameservers in a file. Without libc on Linux it works great though! Anyway this also changes the API to be based on Io.Queue. By using a large enough buffer, reusable code can be written that does not require concurrent, yet takes advantage of responding to DNS queries as they come in. I sketched out a new implementation of `HostName.connect` to demonstrate this, but it will require an additional API (`Io.Select`) to be implemented in a future commit. This commit also introduces "uncancelable" variants for mutex locking, waiting on a condition, and putting items into a queue.
Diffstat (limited to 'lib/std/Thread/WaitGroup.zig')
0 files changed, 0 insertions, 0 deletions