Zig 0.17.0-dev (Split by item)

Shortcut keys
?
Show these tips
S
Focus search field
Esc
Clear focus & close tips
U
Jump to source code
↑
Move up in search results
↓
Move down in search results
↵
Go to active search result
This is an example of documentation generated by ZigDoc, an alternative to Zig's built-in Auto Doc feature. See also examples in other modes/formats. The project being documented here (as the example) is the Zig standard library. Private Function

dirClose

Private Function
std.Io.Threaded.dirClose
fn dirClose(userdata: ?*anyopaque, dirs: []const Dir) void

Params

  • userdata: ?*anyopaque
  • dirs: []const Dir

File

Io/Threaded.zig:5544
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
fn dirClose(userdata: ?*anyopaque, dirs: []const Dir) void {
    const t: *Threaded = @ptrCast(@alignCast(userdata));
    _ = t;
    for (dirs) |dir| {
        if (is_windows) {
            windows.CloseHandle(dir.handle);
        } else {
            closeFd(dir.handle);
        }
    }
}