Zig 0.17.0-dev (Split by item)
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 library itself.
Zig › std/ › Io/ › Threaded.zig › systemBasicInformation
systemBasicInformation
Threaded.systemBasicInformation
fn systemBasicInformation (t : *Threaded ) ?*const windows .SYSTEM .BASIC_INFORMATION
File
Code
fn systemBasicInformation (t : *Threaded ) ?*const windows .SYSTEM .BASIC_INFORMATION {
if (!t .system_basic_information .initialized .load (.acquire )) {
mutexLock (&t .mutex );
defer mutexUnlock (&t .mutex );
switch (windows .ntdll .NtQuerySystemInformation (
.Basic ,
&t .system_basic_information .buffer ,
@sizeOf (windows .SYSTEM .BASIC_INFORMATION ),
null ,
)) {
.SUCCESS => {},
else => return null ,
}
t .system_basic_information .initialized .store (true , .release );
}
return &t .system_basic_information .buffer ;
}