mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-07 22:34:28 +00:00
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. |
||
|---|---|---|
| .. | ||
| Ast | ||
| c_translation | ||
| llvm | ||
| system | ||
| Ast.zig | ||
| AstGen.zig | ||
| AstRlAnnotate.zig | ||
| BuiltinFn.zig | ||
| Client.zig | ||
| ErrorBundle.zig | ||
| LibCDirs.zig | ||
| LibCInstallation.zig | ||
| llvm.zig | ||
| number_literal.zig | ||
| Parse.zig | ||
| parser_test.zig | ||
| perf_test.zig | ||
| primitives.zig | ||
| Server.zig | ||
| string_literal.zig | ||
| system.zig | ||
| target.zig | ||
| tokenizer.zig | ||
| WindowsSdk.zig | ||
| Zir.zig | ||
| Zoir.zig | ||
| ZonGen.zig | ||