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. Public Function
Sets the logical boolean to true, and hence unblocks any pending calls to wait. The logical boolean remains true until reset is called, so future calls to set have no semantic effect.
Any memory accesses prior to a set call are "released", so that if this set call causes isSet to return true or a wait to finish, those tasks will be able to observe those memory accesses.
Sets the logical boolean to true, and hence unblocks any pending calls to
wait. The logical boolean remains true untilresetis called, so future calls tosethave no semantic effect.Any memory accesses prior to a
setcall are "released", so that if thissetcall causesisSetto returntrueor a wait to finish, those tasks will be able to observe those memory accesses.