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
The caller has canceled g. Inform any threads working on that group of the cancelation if necessary, and wait for g to finish (indicated by num_completed being incremented from 0 to 1), while sending regular signals to threads if necessary for them to unblock from any cancelable syscalls.
skip_signals means it is already known that no threads are currently working on the group so no notifications or signals are necessary.
The caller has canceled
g. Inform any threads working on that group of the cancelation if necessary, and wait forgto finish (indicated bynum_completedbeing incremented from 0 to 1), while sending regular signals to threads if necessary for them to unblock from any cancelable syscalls.skip_signalsmeans it is already known that no threads are currently working on the group so no notifications or signals are necessary.